rest25/library/__future__.rst => rest262/library/__future__.rst
n1- 
2:mod:`__future__` --- Future statement definitions
3==================================================
4
5.. module:: __future__
6   :synopsis: Future statement definitions
7
8
9:mod:`__future__` is a real module, and serves three purposes:
12  find the modules they're importing.
13
14* To ensure that future_statements run under releases prior to 2.1 at least
15  yield runtime exceptions (the import of :mod:`__future__` will fail, because
16  there was no module of that name prior to 2.1).
17
18* To document when incompatible changes were introduced, and when they will be
19  --- or were --- made mandatory.  This is a form of executable documentation, and
n20-  can be inspected programatically via importing :mod:`__future__` and examining
n19+  can be inspected programmatically via importing :mod:`__future__` and examining
21  its contents.
22
23Each statement in :file:`__future__.py` is of the form::
24
t25-   FeatureName = "_Feature(OptionalRelease "," MandatoryRelease ","
t24+   FeatureName = _Feature(OptionalRelease, MandatoryRelease,
26-                           CompilerFlag ")"
25+                          CompilerFlag)
27
28
29where, normally, *OptionalRelease* is less than *MandatoryRelease*, and both are
305-tuples of the same form as ``sys.version_info``::
31
32   (PY_MAJOR_VERSION, # the 2 in 2.1.0a3; an int
33    PY_MINOR_VERSION, # the 1; an int
34    PY_MICRO_VERSION, # the 0; an int
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op