mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.10] bpo-45757: Fix bug where dis produced an incorrect oparg on EXTENDED_ARG before a no-arg opcode (GH-29480) (GH-29506)
This commit is contained in:
parent
d29f591dd6
commit
c5bfb88eb6
3 changed files with 23 additions and 0 deletions
|
|
@ -428,6 +428,7 @@ def _unpack_opargs(code):
|
|||
extended_arg = (arg << 8) if op == EXTENDED_ARG else 0
|
||||
else:
|
||||
arg = None
|
||||
extended_arg = 0
|
||||
yield (i, op, arg)
|
||||
|
||||
def findlabels(code):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue