mirror of
https://github.com/python/cpython.git
synced 2026-04-05 03:21:05 +00:00
update paragraph about __future__ for 2.6
This commit is contained in:
parent
6c75a30712
commit
f660a53c9f
1 changed files with 5 additions and 4 deletions
|
|
@ -788,10 +788,11 @@ can appear before a future statement are:
|
|||
* blank lines, and
|
||||
* other future statements.
|
||||
|
||||
The features recognized by Python 2.5 are ``absolute_import``, ``division``,
|
||||
``generators``, ``nested_scopes`` and ``with_statement``. ``generators`` and
|
||||
``nested_scopes`` are redundant in Python version 2.3 and above because they
|
||||
are always enabled.
|
||||
The features recognized by Python 2.6 are ``unicode_literals``,
|
||||
``print_function``, ``absolute_import``, ``division``, ``generators``,
|
||||
``nested_scopes`` and ``with_statement``. ``generators``, ``with_statement``,
|
||||
``nested_scopes`` are redundant in Python version 2.6 and above because they are
|
||||
always enabled.
|
||||
|
||||
A future statement is recognized and treated specially at compile time: Changes
|
||||
to the semantics of core constructs are often implemented by generating
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue