diff options
author | Mark Shannon <mark@hotpy.org> | 2023-06-14 15:15:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-14 15:15:08 (GMT) |
commit | 1d857da7f0e4858e561223f319ae5afe737d5657 (patch) | |
tree | ebfa22004b373a48769f42f002ed401248cdd3ea /Lib/opcode.py | |
parent | 307bceaa65c4f1a8e110cd7a9cce6e93a1b021ba (diff) | |
download | cpython-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.py | 5 |
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) |