mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-128914: Remove conditional stack effects from bytecodes.c
and the code generators (GH-128918)
This commit is contained in:
parent
0a6412f9cc
commit
ab61d3f430
44 changed files with 1460 additions and 1679 deletions
|
@ -1511,7 +1511,7 @@ def getclosurevars(func):
|
|||
for instruction in dis.get_instructions(code):
|
||||
opname = instruction.opname
|
||||
name = instruction.argval
|
||||
if opname == "LOAD_ATTR":
|
||||
if opname == "LOAD_ATTR" or opname == "LOAD_METHOD":
|
||||
unbound_names.add(name)
|
||||
elif opname == "LOAD_GLOBAL":
|
||||
global_names.add(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue