summaryrefslogtreecommitdiff
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-12-15 10:30:09 +0000
committerGitHub <noreply@github.com>2021-12-15 10:30:09 +0000
commit0b50a4f0cdee41a18fb4ba6e75569f9cfaceb39e (patch)
tree307cc32e8ca72f71eaa8250e976306adc939e9fd /Lib/opcode.py
parent86de99588db3beff964137f4fe27dd1077a09b35 (diff)
downloadcpython-git-0b50a4f0cdee41a18fb4ba6e75569f9cfaceb39e.tar.gz
bpo-46039: Split yield from in two (GH-30035)
* Split YIELD_FROM opcode into SEND and JUMP_ABSOLUTE. * Remove YIELD_FROM opcode.
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r--Lib/opcode.py4
1 files changed, 2 insertions, 2 deletions
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