Mercurial > cpython-lru_cache-weakref
annotate Include/patchlevel.h @ 11239:577ea261bdf2 legacy-trunk
Find the help.txt file relative to __file__ or ".", not in sys.path.
(Suggested by Moshe Zadka, but implemented differently.)
Add <<python-docs>> event which, on Unix, brings up Netscape pointing
to http://www.python.doc/current/ (a local copy would be nice but its
location can't be predicted). Windows solution TBD.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 26 Aug 1999 23:06:05 +0000 |
| parents | 35d5b0736242 |
| children | 3789b643fe89 |
| 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 Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
3 The Netherlands. |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
4 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
5 All Rights Reserved |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
6 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
7 Permission to use, copy, modify, and distribute this software and its |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
8 documentation for any purpose and without fee is hereby granted, |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
9 provided that the above copyright notice appear in all copies and that |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
10 both that copyright notice and this permission notice appear in |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
11 supporting documentation, and that the names of Stichting Mathematisch |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
12 Centrum or CWI or Corporation for National Research Initiatives or |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
13 CNRI not be used in advertising or publicity pertaining to |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
14 distribution of the software without specific, written prior |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
15 permission. |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
16 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
17 While CWI is the initial source for this software, a modified version |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
18 is made available by the Corporation for National Research Initiatives |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
19 (CNRI) at the Internet address ftp://ftp.python.org. |
|
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 STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
22 REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
23 MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
24 CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
25 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
26 PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
27 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
28 PERFORMANCE OF THIS SOFTWARE. |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
29 |
|
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 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
32 /* Newfangled version identification scheme. |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
33 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
34 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
|
35 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
|
36 defined(PY_MAJOR_VERSION). |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
37 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
38 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
|
39 configure.in must also be changed. |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
40 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
41 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
|
42 */ |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
43 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
44 /* Values for PY_RELEASE_LEVEL */ |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
45 #define PY_RELEASE_LEVEL_ALPHA 0xA |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
46 #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
|
47 #define PY_RELEASE_LEVEL_GAMMA 0xC |
|
9744
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
48 #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
|
49 /* Higher for patch releases */ |
|
9744
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
50 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
51 /* Version parsed out into numeric values */ |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
52 #define PY_MAJOR_VERSION 1 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
53 #define PY_MINOR_VERSION 5 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
54 #define PY_MICRO_VERSION 2 |
|
10587
040b52868fe8
Prepare for final release.
Guido van Rossum <guido@python.org>
parents:
10546
diff
changeset
|
55 #define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL |
|
040b52868fe8
Prepare for final release.
Guido van Rossum <guido@python.org>
parents:
10546
diff
changeset
|
56 #define PY_RELEASE_SERIAL 0 |
|
9744
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
57 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
58 /* Version as a string */ |
|
10944
35d5b0736242
Set PATCHLEVEL and PY_VERSION (string version only) to 1.5.2+ to
Guido van Rossum <guido@python.org>
parents:
10587
diff
changeset
|
59 #define PY_VERSION "1.5.2+" |
|
9744
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
60 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
61 /* Historic */ |
|
10944
35d5b0736242
Set PATCHLEVEL and PY_VERSION (string version only) to 1.5.2+ to
Guido van Rossum <guido@python.org>
parents:
10587
diff
changeset
|
62 #define PATCHLEVEL "1.5.2+" |
|
9744
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
63 |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
64 /* 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
|
65 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
|
66 #define PY_VERSION_HEX ((PY_MAJOR_VERSION << 24) | \ |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
67 (PY_MINOR_VERSION << 16) | \ |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
68 (PY_MICRO_VERSION << 8) | \ |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
69 (PY_RELEASE_LEVEL << 4) | \ |
|
85ab28644201
New version identification scheme.
Guido van Rossum <guido@python.org>
parents:
9451
diff
changeset
|
70 (PY_RELEASE_SERIAL << 0)) |
