Updated for 2.1a3
[python/dscho.git] / Lib / __future__.py
blobc50b810a7f5ec90deddf5c6d89754f43e070de00
1 """__future__: Record of phased-in incompatible language changes.
3 Each line is of the form:
5 FeatureName = ReleaseInfo
7 ReleaseInfo is a pair of the form:
9 (OptionalRelease, MandatoryRelease)
11 where, normally, OptionalRelease < MandatoryRelease, and both are 5-tuples
12 of the same form as sys.version_info:
14 (PY_MAJOR_VERSION, # the 2 in 2.1.0a3; an int
15 PY_MINOR_VERSION, # the 1; an int
16 PY_MICRO_VERSION, # the 0; an int
17 PY_RELEASE_LEVEL, # "alpha", "beta", "candidate" or "final"; string
18 PY_RELEASE_SERIAL # the 3; an int
21 OptionalRelease records the first release in which
23 from __future__ import FeatureName
25 was accepted.
27 In the case of MandatoryReleases that have not yet occurred,
28 MandatoryRelease predicts the release in which the feature will become part
29 of the language.
31 Else MandatoryRelease records when the feature became part of the language;
32 in releases at or after that, modules no longer need
34 from __future__ import FeatureName
36 to use the feature in question, but may continue to use such imports.
38 MandatoryRelease may also be None, meaning that a planned feature got
39 dropped.
41 No line is ever to be deleted from this file.
42 """
44 nested_scopes = (2, 1, 0, "beta", 1), (2, 2, 0, "final", 0)