summaryrefslogtreecommitdiffstats
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-01-06 14:47:57 (GMT)
committerGitHub <noreply@github.com>2023-01-06 14:47:57 (GMT)
commit78068126a1f2172ff61a0871ba43d8530bc73905 (patch)
treeaa42d4c6d64130587e2f62d61389496693de86e4 /Lib/opcode.py
parent659c2607f5b44a8a18a0840d1ac39df8a3219dd5 (diff)
downloadcpython-78068126a1f2172ff61a0871ba43d8530bc73905.zip
cpython-78068126a1f2172ff61a0871ba43d8530bc73905.tar.gz
cpython-78068126a1f2172ff61a0871ba43d8530bc73905.tar.bz2
GH-99005: More intrinsics (GH-100774)
* Remove UNARY_POSITIVE, LIST_TO_TUPLE and ASYNC_GEN_WRAP, replacing them with intrinsics.
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r--Lib/opcode.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py
index a5dea8c..9ba39e2 100644
--- a/Lib/opcode.py
+++ b/Lib/opcode.py
@@ -82,7 +82,7 @@ def_op('INTERPRETER_EXIT', 3)
def_op('END_FOR', 4)
def_op('NOP', 9)
-def_op('UNARY_POSITIVE', 10)
+
def_op('UNARY_NEGATIVE', 11)
def_op('UNARY_NOT', 12)
@@ -120,12 +120,10 @@ def_op('LOAD_BUILD_CLASS', 71)
def_op('LOAD_ASSERTION_ERROR', 74)
def_op('RETURN_GENERATOR', 75)
-def_op('LIST_TO_TUPLE', 82)
def_op('RETURN_VALUE', 83)
def_op('SETUP_ANNOTATIONS', 85)
-def_op('ASYNC_GEN_WRAP', 87)
def_op('PREP_RERAISE_STAR', 88)
def_op('POP_EXCEPT', 89)