mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
GH-99944: Make dis display the value of oparg of KW_NAMES (#103856)
Co-authored-by: chilaxan <chilaxan@gmail.com>
This commit is contained in:
parent
1461a22f91
commit
d45225bd66
3 changed files with 27 additions and 3 deletions
|
@ -369,9 +369,8 @@ def _get_const_value(op, arg, co_consts):
|
|||
assert op in hasconst
|
||||
|
||||
argval = UNKNOWN
|
||||
if op == LOAD_CONST or op == RETURN_CONST:
|
||||
if co_consts is not None:
|
||||
argval = co_consts[arg]
|
||||
if co_consts is not None:
|
||||
argval = co_consts[arg]
|
||||
return argval
|
||||
|
||||
def _get_const_info(op, arg, co_consts):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue