LOAD_CONST -> LOAD_CODE where appropriate

This commit is contained in:
rocky
2019-06-19 14:43:07 -04:00
parent e2d7f01298
commit 24afe072b7
7 changed files with 72 additions and 42 deletions

View File

@@ -361,6 +361,8 @@ class Scanner3(Scanner):
opname = "LOAD_SETCOMP"
elif const.co_name == "<listcomp>":
opname = "LOAD_LISTCOMP"
else:
opname = "LOAD_CODE"
# verify() uses 'pattr' for comparison, since 'attr'
# now holds Code(const) and thus can not be used
# for comparison (todo: think about changing this)