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/importlib | |
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/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap_external.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index 707dd7b..cf68c44 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -447,7 +447,9 @@ _code_type = type(_write_atomic.__code__) # Python 3.12b1 3531 (Add PEP 695 changes) # Python 3.13a1 3550 (Plugin optimizer support) # Python 3.13a1 3551 (Compact superinstructions) -# Python 3.13a1 3552 (Add SET_FUNCTION_ATTRIBUTE) +# Python 3.13a1 3552 (Remove LOAD_FAST__LOAD_CONST and LOAD_CONST__LOAD_FAST) +# Python 3.13a1 3553 (Add SET_FUNCTION_ATTRIBUTE) +# Python 3.13a1 3554 (more efficient bytecodes for f-strings) # Python 3.14 will start with 3600 @@ -464,7 +466,7 @@ _code_type = type(_write_atomic.__code__) # Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array # in PC/launcher.c must also be updated. -MAGIC_NUMBER = (3552).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3554).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c |