diff options
author | Batuhan Taskaya <isidentical@gmail.com> | 2021-05-08 11:49:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 11:49:40 (GMT) |
commit | 17229ab4a2fd5db20d52ef0f3aca2a8b51869c43 (patch) | |
tree | bd5b5b4d6318afea4c6e880fcc7d3d416fa2d913 /Doc | |
parent | b063b02eabf91bfd4edc0f3fde7ce8f0ebb392c4 (diff) | |
download | cpython-17229ab4a2fd5db20d52ef0f3aca2a8b51869c43.zip cpython-17229ab4a2fd5db20d52ef0f3aca2a8b51869c43.tar.gz cpython-17229ab4a2fd5db20d52ef0f3aca2a8b51869c43.tar.bz2 |
bpo-42725: mention the changes on what's new (GH-25974)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.10.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index b6166f7..cfc560e 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -812,6 +812,16 @@ Other Language Changes :ref:`annotations-howto`. (Contributed by Larry Hastings in :issue:`43901`.) +* Annotations consist of ``yield``, ``yield from``, ``await`` or named expressions + are now forbidden under ``from __future__ import annotations`` due to their side + effects. + (Contributed by Batuhan Taskaya in :issue:`42725`.) + +* Usage of unbound variables, ``super()`` and other expressions that might + alter the processing of symbol table as annotations are now rendered + effectless under ``from __future__ import annotations``. + (Contributed by Batuhan Taskaya in :issue:`42725`.) + New Modules =========== |