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
LOAD_DEREF and LOAD_CLOSURE have incorrect opcode metadata flags #151321
LOAD_DEREF is missing the HAS_FREE_FLAG within pycore_opcode_metadata.h and has the HAS_LOCAL_FLAG set, although it only access freevars not locals, this leads to incorrect behaviour with dis.hasfree().
LOAD_CLOSURE has the same incorrect flags.
This behavior is correct in python3.12, in python3.13 only LOAD_CLOSURE is missing the correct flags.
Sequence of bytecodes that access a free (closure) variable. ‘free’ in this context refers to names in the current scope that are referenced by inner scopes or names in outer scopes that are referenced from this scope. It does not include references to global or builtin scopes.
Activity
pythongh-151321: Fix opcode metadata flags for LOAD_DEREF and LOAD_CL…
pythongh-151321: Fix incorrect opcode metadata flags for LOAD_DEREF …
gh-151321: Fix incorrect opcode metadata flags for LOAD_DEREF opcode (G…
pythongh-151321: Fix incorrect opcode metadata flags for LOAD_DEREF o…