From 3fd86100022103f41ada043f5bb5a7201e80ac27 Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Thu, 19 May 2022 17:49:29 +0100 Subject: GH-89914: Make the oparg of the YIELD_VALUE instruction equal the stack depth. (GH-92960) --- Lib/opcode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/opcode.py') 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) -- cgit v1.2.3