10000 [3.12] gh-109292: add symtable impact of PEP 709 to What's New (GH-10… · python/cpython@a6ed810 · GitHub
[go: up one dir, main page]

Skip to content

Commit a6ed810

Browse files
[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 2b1e2f1) Co-authored-by: Carl Meyer <carl@oddbird.net>
1 parent 2004e12 commit a6ed810

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/whatsnew/3.12.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ Inlining does result in a few visible behavior changes:
258258

259259
* There is no longer a separate frame for the comprehension in tracebacks,
260260
and tracing/profiling no longer shows the comprehension as a function call.
261+
* The :mod:`symtable` module will no longer produce child symbol tables for each
262+
comprehension; instead, the comprehension's locals will be included in the
263+
parent function's symbol table.
261264
* Calling :func:`locals` inside a comprehension now includes variables
262265
from outside the comprehension, and no longer includes the synthetic ``.0``
263266
variable for the comprehension "argument".

0 commit comments

Comments
 (0)
0