You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve interface between compiler and symtable #122985
In this issue I want to try and improve the interface between the compiler and the symtable.
Problems I see are:
the compiler modifies the symtable
the compiler performs calculations that the symtable could do (such as in push_inlined_comprehension_state)
the symtable is actually not a correct representation of some scopes, like those of inlined comprehensions (the comprehension scope it removed from the symtable tree, but is still access from the compiler via the symtable dict). Exception handlers are another example of scope changes that the compiler does, which are not reflected in the symtable.
Activity
pythongh-122985: add SYMBOL_TO_SCOPE macro in symtable
gh-122985: add SYMBOL_TO_SCOPE macro in symtable (#122986)
pythongh-122985: add SYMBOL_TO_SCOPE macro in symtable (python#122986)
iritkatriel commentedon Sep 27, 2024
See #124697 re inlined comprehensions.