summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-02-18 17:19:08 (GMT)
committerGitHub <noreply@github.com>2022-02-18 17:19:08 (GMT)
commitcf345e945f48f54785799390c2e92c5310847bd4 (patch)
treeaf28be223953ba50ff6d0c5110af7a8c2a6c4f84 /Lib/importlib
parente2c28616ce6c3cdb1013c415125220a0b86b86a1 (diff)
downloadcpython-cf345e945f48f54785799390c2e92c5310847bd4.zip
cpython-cf345e945f48f54785799390c2e92c5310847bd4.tar.gz
cpython-cf345e945f48f54785799390c2e92c5310847bd4.tar.bz2
bpo-46329: Change calling sequence (again) (GH-31373)
* Change calling sequence: Add PUSH_NULL. Merge PRECALL_FUNCTION and PRECALL_METHOD into PRECALL.
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 7b9803d..85f50eb 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -385,6 +385,7 @@ _code_type = type(_write_atomic.__code__)
# Python 3.11a5 3477 (Replace DUP_TOP/DUP_TOP_TWO with COPY and
# ROT_TWO/ROT_THREE/ROT_FOUR/ROT_N with SWAP)
# Python 3.11a5 3478 (New CALL opcodes)
+# Python 3.11a5 3479 (Add PUSH_NULL opcode)
# Python 3.12 will start with magic number 3500
@@ -402,7 +403,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 = (3478).to_bytes(2, 'little') + b'\r\n'
+MAGIC_NUMBER = (3479).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
_PYCACHE = '__pycache__'