From 0b50a4f0cdee41a18fb4ba6e75569f9cfaceb39e Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Wed, 15 Dec 2021 10:30:09 +0000 Subject: bpo-46039: Split yield from in two (GH-30035) * Split YIELD_FROM opcode into SEND and JUMP_ABSOLUTE. * Remove YIELD_FROM opcode. --- 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 0b64686d60..cb16ef7831 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -93,7 +93,7 @@ def_op('GET_ITER', 68) def_op('GET_YIELD_FROM_ITER', 69) def_op('PRINT_EXPR', 70) def_op('LOAD_BUILD_CLASS', 71) -def_op('YIELD_FROM', 72) + def_op('GET_AWAITABLE', 73) def_op('LOAD_ASSERTION_ERROR', 74) @@ -143,7 +143,7 @@ def_op('RERAISE', 119) def_op('COPY', 120) jabs_op('JUMP_IF_NOT_EXC_MATCH', 121) def_op('BINARY_OP', 122) - +jrel_op('SEND', 123) # Number of bytes to skip def_op('LOAD_FAST', 124) # Local variable number haslocal.append(124) def_op('STORE_FAST', 125) # Local variable number -- cgit v1.2.1