summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/_bootstrap_external.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-05-16 16:35:18 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-05-16 16:35:18 (GMT)
commit8d0abb9eb6fdb21bcb3486ae661f80ee30b45837 (patch)
tree8a6887ec0783b93fac9cf15ea142691e8fc1b3cf /Lib/importlib/_bootstrap_external.py
parent0b39a556e8aa4d15de21a3305f74e12886d5f31b (diff)
parent7ae61af8278c9a27caf508d6dece62bd4f5f552f (diff)
downloadcpython-8d0abb9eb6fdb21bcb3486ae661f80ee30b45837.zip
cpython-8d0abb9eb6fdb21bcb3486ae661f80ee30b45837.tar.gz
cpython-8d0abb9eb6fdb21bcb3486ae661f80ee30b45837.tar.bz2
Issue #26073: Updates magic number comment in _bootstrap_external.py and changes numbers in launcher.py to decimal to match official table.
Diffstat (limited to 'Lib/importlib/_bootstrap_external.py')
-rw-r--r--Lib/importlib/_bootstrap_external.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
index 5d63a1f..076ed16 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -229,6 +229,9 @@ _code_type = type(_write_atomic.__code__)
# MAGIC must change whenever the bytecode emitted by the compiler may no
# longer be understood by older implementations of the eval loop (usually
# due to the addition of new opcodes).
+#
+# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
+# in PC/launcher.c must also be updated.
MAGIC_NUMBER = (3361).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c