summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2021-06-21 20:53:04 (GMT)
committerGitHub <noreply@github.com>2021-06-21 20:53:04 (GMT)
commit355f5dd36a0f53175517f35798aa874564d1113a (patch)
treecfc6c7e4f009afc772d4a9e0c909d6e3499cf2e9 /Lib/importlib
parentc5d700f0e2e2921c6b54c72ffb0fca3c3d1ef06b (diff)
downloadcpython-355f5dd36a0f53175517f35798aa874564d1113a.zip
cpython-355f5dd36a0f53175517f35798aa874564d1113a.tar.gz
cpython-355f5dd36a0f53175517f35798aa874564d1113a.tar.bz2
bpo-43693: Turn localspluskinds into an object (GH-26749)
Managing it as a bare pointer to malloc'ed bytes is just too awkward in a few places.
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 7bf19fe..21ac22d 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -359,6 +359,7 @@ _code_type = type(_write_atomic.__code__)
# Python 3.11a1 3454 (compute cell offsets relative to locals bpo-43693)
# Python 3.11a1 3455 (add MAKE_CELL bpo-43693)
# Python 3.11a1 3456 (interleave cell args bpo-43693)
+# Python 3.11a1 3457 (Change localsplus to a bytes object bpo-43693)
#
# MAGIC must change whenever the bytecode emitted by the compiler may no
@@ -368,7 +369,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 = (3456).to_bytes(2, 'little') + b'\r\n'
+MAGIC_NUMBER = (3457).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
_PYCACHE = '__pycache__'