8000 gh-109292: add symtable impact of PEP 709 to What's New (#109293) · python/cpython@2b1e2f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2b1e2f1

Browse files
authored
gh-109292: add symtable impact of PEP 709 to What's New (#109293)
1 parent ceeb417 commit 2b1e2f1

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
@@ -257,6 +257,9 @@ Inlining does result in a few visible behavior changes:
257257

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

0 commit comments

Comments
 (0)
0