summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-09-12 14:21:08 (GMT)
committerGitHub <noreply@github.com>2023-09-12 14:21:08 (GMT)
commita6ed8106e2197e1be220a4419daf71c36766c69e (patch)
tree0f48a9d2b102cc45eb922f2e2134aa368bfc619f
parent2004e12d8d6268795425a57b4f5b4fb7e895d1ea (diff)
downloadcpython-a6ed8106e2197e1be220a4419daf71c36766c69e.zip
cpython-a6ed8106e2197e1be220a4419daf71c36766c69e.tar.gz
cpython-a6ed8106e2197e1be220a4419daf71c36766c69e.tar.bz2
[3.12] gh-109292: add symtable impact of PEP 709 to What's New (GH-109293) (#109296)
gh-109292: add symtable impact of PEP 709 to What's New (GH-109293) (cherry picked from commit 2b1e2f1cd154e6df553eda7936715ea0622b4ecf) Co-authored-by: Carl Meyer <carl@oddbird.net>
-rw-r--r--Doc/whatsnew/3.12.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 494a4b0..3bd9081 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -258,6 +258,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".