summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorhms <18321626+polynomialherder@users.noreply.github.com>2023-06-29 16:34:00 (GMT)
committerGitHub <noreply@github.com>2023-06-29 16:34:00 (GMT)
commit8bff940ad69ce176dcd2b8e91d0b30ddd09945f1 (patch)
tree1ecf331f5376e764b28a82fdddb33f99a3dee6df /Lib/importlib
parent3c70d467c148875f2ce17bacab8909ecc3e9fc1d (diff)
downloadcpython-8bff940ad69ce176dcd2b8e91d0b30ddd09945f1.zip
cpython-8bff940ad69ce176dcd2b8e91d0b30ddd09945f1.tar.gz
cpython-8bff940ad69ce176dcd2b8e91d0b30ddd09945f1.tar.bz2
gh-105775: Convert LOAD_CLOSURE to a pseudo-op (#106059)
This enables super-instruction formation, removal of checks for uninitialized variables, and frees up an instruction.
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 6a3eabe..8b4ac6c 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -451,6 +451,7 @@ _code_type = type(_write_atomic.__code__)
# 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.13a1 3556 (Convert LOAD_CLOSURE to a pseudo-op)
# Python 3.14 will start with 3600
@@ -467,7 +468,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 = (3555).to_bytes(2, 'little') + b'\r\n'
+MAGIC_NUMBER = (3556).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c