Incorrect output due to Tier 2 _LOAD_CONST_INLINE
#117051
Labels
3.13
bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Bug report
I've constructed a sneaky way to break the
remove_globals()
optimization, by executing a code object in two different globals dicts. (Credit goes to @brandtbucher who started the conversation about this topic, though this particular example is mine.)Take this code:
This should print
(try it with Python 3.12, or Python 3.13 without JIT or
-Xuops
).However with current main (EDIT: when using JIT or
-Xuops
) it prints:-(
The text was updated successfully, but these errors were encountered: