summaryrefslogtreecommitdiff
path: root/Lib/importlib/_bootstrap_external.py
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2021-05-27 09:54:34 -0600
committerGitHub <noreply@github.com>2021-05-27 09:54:34 -0600
commit9f494d492944c3a6a7a7471b4ad3a025dc7de289 (patch)
tree8cca83ea93a0bf38de318278a73155dfe4cbf4f7 /Lib/importlib/_bootstrap_external.py
parent318adeba780851c416505e48a3454cacca831419 (diff)
downloadcpython-git-9f494d492944c3a6a7a7471b4ad3a025dc7de289.tar.gz
bpo-43693: Add _PyCode_New(). (gh-26375)
This is an internal-only API that helps us manage the many values used to create a code object. https://bugs.python.org/issue43693
Diffstat (limited to 'Lib/importlib/_bootstrap_external.py')
-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 8d0ebef804..ee720f84a4 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -354,6 +354,7 @@ _code_type = type(_write_atomic.__code__)
# Python 3.10b1 3439 (Add ROT_N)
# Python 3.11a1 3450 Use exception table for unwinding ("zero cost" exception handling)
# Python 3.11a1 3451 (Add CALL_METHOD_KW)
+# Python 3.11a1 3452 (drop nlocals from marshaled code objects)
#
# MAGIC must change whenever the bytecode emitted by the compiler may no
@@ -363,7 +364,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 = (3451).to_bytes(2, 'little') + b'\r\n'
+MAGIC_NUMBER = (3452).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
_PYCACHE = '__pycache__'