diff options
author | Saiyang Gou <gousaiyang@163.com> | 2021-04-07 05:02:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-07 05:02:20 (GMT) |
commit | 1be456ae9d53bb1cba2b24fc86175c282d1c2169 (patch) | |
tree | 770c06853b297707bff2418b7daf910911301244 /Doc | |
parent | 2219187cab6bca009c42b63b2f4c30b5b10c916d (diff) | |
download | cpython-1be456ae9d53bb1cba2b24fc86175c282d1c2169.zip cpython-1be456ae9d53bb1cba2b24fc86175c282d1c2169.tar.gz cpython-1be456ae9d53bb1cba2b24fc86175c282d1c2169.tar.bz2 |
bpo-38605: Update "Future statements" docs since PEP 563 is always enabled (GH-25236)
Update documentation section for "Future statements" to reflect that `from __future__ import annotations` is on by default, and no features require using the future statement now.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/reference/simple_stmts.rst | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index 2c6c901..3fff848 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -874,14 +874,11 @@ can appear before a future statement are: * blank lines, and * other future statements. -The only feature that requires using the future statement is -``annotations`` (see :pep:`563`). - All historical features enabled by the future statement are still recognized by Python 3. The list includes ``absolute_import``, ``division``, ``generators``, ``generator_stop``, ``unicode_literals``, -``print_function``, ``nested_scopes`` and ``with_statement``. They are -all redundant because they are always enabled, and only kept for +``print_function``, ``nested_scopes``, ``with_statement`` and ``annotations``. +They are all redundant because they are always enabled, and only kept for backwards compatibility. A future statement is recognized and treated specially at compile time: Changes |