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

@@ -287,6 +287,8 @@ class Scanner2(Scanner):
op_name = 'LOAD_DICTCOMP'
elif const.co_name == '<setcomp>':
op_name = 'LOAD_SETCOMP'
else:
op_name = "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)