annotate Include/patchlevel.h @ 80661:94de77bd0b4b 2.7

Issue #16194: document imp.load_dynamic problems when read several extension modules from the same binary object file.
author Andrew Svetlov <andrew.svetlov@gmail.com>
date Thu, 29 Nov 2012 19:51:28 +0200
parents 5d5573d94988
children a8d18780bc2b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
1
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
2 /* Newfangled version identification scheme.
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
3
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
4 This scheme was added in Python 1.5.2b2; before that time, only PATCHLEVEL
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
5 was available. To test for presence of the scheme, test for
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
6 defined(PY_MAJOR_VERSION).
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
7
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
8 When the major or minor version changes, the VERSION variable in
75668
f5bf91af01ca - rename configure.in to configure.ac
Matthias Klose <doko@ubuntu.com>
parents: 75207
diff changeset
9 configure.ac must also be changed.
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
10
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
11 There is also (independent) API version information in modsupport.h.
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
12 */
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
13
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
14 /* Values for PY_RELEASE_LEVEL */
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
15 #define PY_RELEASE_LEVEL_ALPHA 0xA
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
16 #define PY_RELEASE_LEVEL_BETA 0xB
33994
b4adb1021103 preparing for rc1
Anthony Baxter <anthonybaxter@gmail.com>
parents: 33881
diff changeset
17 #define PY_RELEASE_LEVEL_GAMMA 0xC /* For release candidates */
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
18 #define PY_RELEASE_LEVEL_FINAL 0xF /* Serial should be 0 here */
10587
040b52868fe8 Prepare for final release.
Guido van Rossum <guido@python.org>
parents: 10546
diff changeset
19 /* Higher for patch releases */
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
20
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
21 /* Version parsed out into numeric values */
46267
eec144917a18 Updating for 2.6a2
Barry Warsaw <barry@python.org>
parents: 45596
diff changeset
22 /*--start constants--*/
13156
c339ac7b6d4f Bump version to 2.0b1.
Guido van Rossum <guido@python.org>
parents: 12269
diff changeset
23 #define PY_MAJOR_VERSION 2
49370
748ec9b2aef1 Bump to 2.7a0
Barry Warsaw <barry@python.org>
parents: 49365
diff changeset
24 #define PY_MINOR_VERSION 7
75202
b2c6aff96e12 bump to 2.7.3rc1
Benjamin Peterson <benjamin@python.org>
parents: 70785
diff changeset
25 #define PY_MICRO_VERSION 3
76208
c9910fd022fc Bump to 2.6.8
Barry Warsaw <barry@python.org>
parents: 75805
diff changeset
26 #define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
c9910fd022fc Bump to 2.6.8
Barry Warsaw <barry@python.org>
parents: 75805
diff changeset
27 #define PY_RELEASE_SERIAL 0
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
28
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
29 /* Version as a string */
76252
545f8009f01b we live in a post 2.7.3 world
Benjamin Peterson <benjamin@python.org>
parents: 76202
diff changeset
30 #define PY_VERSION "2.7.3+"
46267
eec144917a18 Updating for 2.6a2
Barry Warsaw <barry@python.org>
parents: 45596
diff changeset
31 /*--end constants--*/
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
32
68537
2baaabf6bb05 make this subversion artifact empty
Benjamin Peterson <benjamin@python.org>
parents: 68256
diff changeset
33 /* Subversion Revision number of this file (not of the repository). Empty
2baaabf6bb05 make this subversion artifact empty
Benjamin Peterson <benjamin@python.org>
parents: 68256
diff changeset
34 since Mercurial migration. */
2baaabf6bb05 make this subversion artifact empty
Benjamin Peterson <benjamin@python.org>
parents: 68256
diff changeset
35 #define PY_PATCHLEVEL_REVISION ""
36207
825a041813fb Drop sys.build_number. Add sys.subversion.
Martin v. Löwis <martin@v.loewis.de>
parents: 34045
diff changeset
36
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
37 /* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
38 Use this for numeric comparisons, e.g. #if PY_VERSION_HEX >= ... */
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
39 #define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
40 (PY_MINOR_VERSION << 16) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
41 (PY_MICRO_VERSION << 8) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
42 (PY_RELEASE_LEVEL << 4) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
43 (PY_RELEASE_SERIAL << 0))