]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42725: mention the changes on what's new (GH-25974)
authorBatuhan Taskaya <isidentical@gmail.com>
Sat, 8 May 2021 11:49:40 +0000 (14:49 +0300)
committerGitHub <noreply@github.com>
Sat, 8 May 2021 11:49:40 +0000 (14:49 +0300)
Doc/whatsnew/3.10.rst

index b6166f7acdb084667ba8d51e751d9724a9c4789e..cfc560e1f4435f87a92875d5e23c89838e45cdad 100644 (file)
@@ -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
 ===========