Skip to content

Commit 0db1edc

Browse files
Bump the bytecode magic number.
1 parent 2f32044 commit 0db1edc

File tree

2 files changed

+112
-111
lines changed

2 files changed

+112
-111
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ def _write_atomic(path, data, mode=0o666):
356356
# Python 3.11a1 3451 (Add CALL_METHOD_KW)
357357
# Python 3.11a1 3452 (drop nlocals from marshaled code objects)
358358
# Python 3.11a1 3453 (add co_fastlocalnames and co_fastlocalkinds)
359+
# Python 3.11a1 3454 (compute cell offsets relative to locals bpo-43693)
359360

360361
#
361362
# MAGIC must change whenever the bytecode emitted by the compiler may no
@@ -365,7 +366,7 @@ def _write_atomic(path, data, mode=0o666):
365366
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
366367
# in PC/launcher.c must also be updated.
367368

368-
MAGIC_NUMBER = (3453).to_bytes(2, 'little') + b'\r\n'
369+
MAGIC_NUMBER = (3454).to_bytes(2, 'little') + b'\r\n'
369370
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
370371

371372
_PYCACHE = '__pycache__'

0 commit comments

Comments
 (0)