summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-06-19 22:47:04 (GMT)
committerGitHub <noreply@github.com>2023-06-19 22:47:04 (GMT)
commit33f0a8578b729e67c482daedc2660648afd0ee78 (patch)
treeb3593b66cc56e07461348935f6a8c9259211ea87 /Lib/importlib
parent28187a9c4f95affe50fd37e0db0db177e2b9c2e9 (diff)
downloadcpython-33f0a8578b729e67c482daedc2660648afd0ee78.zip
cpython-33f0a8578b729e67c482daedc2660648afd0ee78.tar.gz
cpython-33f0a8578b729e67c482daedc2660648afd0ee78.tar.bz2
gh-105481: generate _specializations and _specialized_instructions from bytecodes.c (#105913)
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap_external.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
index cf68c44..6a3eabe 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -450,6 +450,7 @@ _code_type = type(_write_atomic.__code__)
# 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.13a1 3555 (generate specialized opcodes metadata from bytecodes.c)
# Python 3.14 will start with 3600
@@ -466,7 +467,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 = (3554).to_bytes(2, 'little') + b'\r\n'
+MAGIC_NUMBER = (3555).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c