diff options
author | Mark Shannon <mark@hotpy.org> | 2022-05-19 17:49:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-19 17:49:29 +0100 |
commit | 3fd86100022103f41ada043f5bb5a7201e80ac27 (patch) | |
tree | d57d89cce134d2556a64ea1935117aa2729fedad /Lib/opcode.py | |
parent | 70aa1b9b912d8254df3c61ae0a55464962f4c087 (diff) | |
download | cpython-3fd86100022103f41ada043f5bb5a7201e80ac27.tar.gz cpython-3fd86100022103f41ada043f5bb5a7201e80ac27.zip |
GH-89914: Make the oparg of the YIELD_VALUE instruction equal the stack depth. (GH-92960)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r-- | Lib/opcode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py index 27e9ab17969..410853a25cf 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -98,7 +98,7 @@ def_op('LIST_TO_TUPLE', 82) def_op('RETURN_VALUE', 83) def_op('IMPORT_STAR', 84) def_op('SETUP_ANNOTATIONS', 85) -def_op('YIELD_VALUE', 86) + def_op('ASYNC_GEN_WRAP', 87) def_op('PREP_RERAISE_STAR', 88) def_op('POP_EXCEPT', 89) @@ -174,7 +174,7 @@ def_op('MAP_ADD', 147) def_op('LOAD_CLASSDEREF', 148) hasfree.append(148) def_op('COPY_FREE_VARS', 149) - +def_op('YIELD_VALUE', 150) def_op('RESUME', 151) def_op('MATCH_CLASS', 152) |