From 265f09ef60d925e490e3f5d58bd71c4c3c1c677c Mon Sep 17 00:00:00 2001 From: gousaiyang Date: Tue, 6 Apr 2021 17:06:43 -0700 Subject: [PATCH] bpo-38605: Update 'Future statements" docs since PEP 563 is always enabled --- Doc/reference/simple_stmts.rst | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index 2c6c90140201c3..3fff8484856ab1 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