mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
gh-109292: add symtable impact of PEP 709 to What's New (#109293)
This commit is contained in:
parent
ceeb4173ae
commit
2b1e2f1cd1
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
* There is no longer a separate frame for the comprehension in tracebacks,
|
||||||
and tracing/profiling no longer shows the comprehension as a function call.
|
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
|
* Calling :func:`locals` inside a comprehension now includes variables
|
||||||
from outside the comprehension, and no longer includes the synthetic ``.0``
|
from outside the comprehension, and no longer includes the synthetic ``.0``
|
||||||
variable for the comprehension "argument".
|
variable for the comprehension "argument".
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue