annotate Include/patchlevel.h @ 23150:52257affe0c9 2.2

backport gvanrossum's patch: Deprecate % as well. The message for deprecation of //, % and divmod is the same in all three cases (mostly because // calls divmod :-). Original patches were: python/dist/src/Objects/complexobject.c:2.59
author Anthony Baxter <anthonybaxter@gmail.com>
date Thu, 18 Apr 2002 05:39:54 +0000
parents 29551f747c0e
children 0226f1656d81
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
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
9 configure.in must also be changed.
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
10528
d4ce9f1f6266 Add the possibility of a gamma release (release candidate).
Guido van Rossum <guido@python.org>
parents: 9744
diff changeset
17 #define PY_RELEASE_LEVEL_GAMMA 0xC
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 */
13156
c339ac7b6d4f Bump version to 2.0b1.
Guido van Rossum <guido@python.org>
parents: 12269
diff changeset
22 #define PY_MAJOR_VERSION 2
17570
75e322d604f1 Change the version to 2.2a0. This may look strange, but indicates
Guido van Rossum <guido@python.org>
parents: 17548
diff changeset
23 #define PY_MINOR_VERSION 2
22058
ca8a2849dd56 Bump version number.
Michael W. Hudson <mwh@python.net>
parents: 21563
diff changeset
24 #define PY_MICRO_VERSION 1
22826
29551f747c0e Update patch level and Windows build number for 2.2.1 final.
Tim Peters <tim.peters@gmail.com>
parents: 22554
diff changeset
25 #define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
29551f747c0e Update patch level and Windows build number for 2.2.1 final.
Tim Peters <tim.peters@gmail.com>
parents: 22554
diff changeset
26 #define PY_RELEASE_SERIAL 0
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
27
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
28 /* Version as a string */
22826
29551f747c0e Update patch level and Windows build number for 2.2.1 final.
Tim Peters <tim.peters@gmail.com>
parents: 22554
diff changeset
29 #define PY_VERSION "2.2.1"
9744
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
30
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
31 /* 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
32 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
33 #define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
34 (PY_MINOR_VERSION << 16) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
35 (PY_MICRO_VERSION << 8) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
36 (PY_RELEASE_LEVEL << 4) | \
85ab28644201 New version identification scheme.
Guido van Rossum <guido@python.org>
parents: 9451
diff changeset
37 (PY_RELEASE_SERIAL << 0))