commit | c5bfb88eb6f82111bb1603ae9d78d0476b552d66 | [log] [tgz] |
---|---|---|
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | Tue Nov 09 22:05:30 2021 +0000 |
committer | GitHub <noreply@github.com> | Tue Nov 09 22:05:30 2021 +0000 |
tree | 1f82414eb63aef1ea2739415ef9869e2ccc2e827 | |
parent | d29f591dd6b1dcd4f36b5b49761cf8225be690bd [diff] [blame] |
[3.10] bpo-45757: Fix bug where dis produced an incorrect oparg on EXTENDED_ARG before a no-arg opcode (GH-29480) (GH-29506)
diff --git a/Lib/dis.py b/Lib/dis.py index 3fee1ce..fe5d24e 100644 --- a/Lib/dis.py +++ b/Lib/dis.py
@@ -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):