]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-109292: add symtable impact of PEP 709 to What's New (#109293)
authorCarl Meyer <carl@oddbird.net>
Tue, 12 Sep 2023 00:03:04 +0000 (18:03 -0600)
committerGitHub <noreply@github.com>
Tue, 12 Sep 2023 00:03:04 +0000 (18:03 -0600)
Doc/whatsnew/3.12.rst

index 447e81855a4a66756a5b30f226256804fbcfeb1e..4d4d1a69e0b44c0fe434100bcb7df2db2e5bb1f4 100644 (file)
@@ -257,6 +257,9 @@ Inlining does result in a few visible behavior changes:
 
 * There is no longer a separate frame for the comprehension in tracebacks,
   and tracing/profiling no longer shows the comprehension as a function call.
+* The :mod:`symtable` module will no longer produce child symbol tables for each
+  comprehension; instead, the comprehension's locals will be included in the
+  parent function's symbol table.
 * Calling :func:`locals` inside a comprehension now includes variables
   from outside the comprehension, and no longer includes the synthetic ``.0``
   variable for the comprehension "argument".