summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2022-03-08 15:53:22 (GMT)
committerGitHub <noreply@github.com>2022-03-08 15:53:22 (GMT)
commit5498a61c7c25db6f9e76032aa9c5153d79e09889 (patch)
tree7a74ec449c7d56d0dfde2b3d977f49993fee09c1 /Lib/importlib
parent28f84c72b6cee145f9c00e9b999656e9a2517e49 (diff)
downloadcpython-5498a61c7c25db6f9e76032aa9c5153d79e09889.zip
cpython-5498a61c7c25db6f9e76032aa9c5153d79e09889.tar.gz
cpython-5498a61c7c25db6f9e76032aa9c5153d79e09889.tar.bz2
bpo-46841: Don't use an oparg counter for `STORE_SUBSCR` (GH-31742)
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 32a41f8..a6f0a1b 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -394,6 +394,7 @@ _code_type = type(_write_atomic.__code__)
# STORE_ATTR)
# Python 3.11a5 3485 (Add an oparg to GET_AWAITABLE)
# Python 3.11a6 3486 (Use inline caching for PRECALL and CALL)
+# Python 3.11a6 3487 (Remove the adaptive "oparg counter" mechanism)
# Python 3.12 will start with magic number 3500
@@ -408,7 +409,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 = (3486).to_bytes(2, 'little') + b'\r\n'
+MAGIC_NUMBER = (3487).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
_PYCACHE = '__pycache__'