summaryrefslogtreecommitdiffstats
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-06-14 15:15:08 (GMT)
committerGitHub <noreply@github.com>2023-06-14 15:15:08 (GMT)
commit1d857da7f0e4858e561223f319ae5afe737d5657 (patch)
treeebfa22004b373a48769f42f002ed401248cdd3ea /Lib/opcode.py
parent307bceaa65c4f1a8e110cd7a9cce6e93a1b021ba (diff)
downloadcpython-1d857da7f0e4858e561223f319ae5afe737d5657.zip
cpython-1d857da7f0e4858e561223f319ae5afe737d5657.tar.gz
cpython-1d857da7f0e4858e561223f319ae5afe737d5657.tar.bz2
GH-77273: Better bytecodes for f-strings (GH-6132)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r--Lib/opcode.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py
index 48e4503..71a8afa 100644
--- a/Lib/opcode.py
+++ b/Lib/opcode.py
@@ -110,6 +110,9 @@ def_op('PUSH_EXC_INFO', 35)
def_op('CHECK_EXC_MATCH', 36)
def_op('CHECK_EG_MATCH', 37)
+def_op('FORMAT_SIMPLE', 40)
+def_op('FORMAT_WITH_SPEC', 41)
+
def_op('WITH_EXCEPT_START', 49)
def_op('GET_AITER', 50)
def_op('GET_ANEXT', 51)
@@ -213,9 +216,9 @@ def_op('YIELD_VALUE', 150)
def_op('RESUME', 151) # This must be kept in sync with deepfreeze.py
def_op('MATCH_CLASS', 152)
-def_op('FORMAT_VALUE', 155)
def_op('BUILD_CONST_KEY_MAP', 156)
def_op('BUILD_STRING', 157)
+def_op('CONVERT_VALUE', 158)
def_op('LIST_EXTEND', 162)
def_op('SET_UPDATE', 163)