Skip to content

Commit 3b2ecbc

Browse files
authored
GH-108614: Increase importlib MAGIC for RESUME_CHECK instruction (#109247)
1 parent 7aa8fcc commit 3b2ecbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ def _write_atomic(path, data, mode=0o666):
455455
# Python 3.13a1 3557 (Make the conversion to boolean in jumps explicit)
456456
# Python 3.13a1 3558 (Reorder the stack items for CALL)
457457
# Python 3.13a1 3559 (Generate opcode IDs from bytecodes.c)
458+
# Python 3.13a1 3560 (Add RESUME_CHECK instruction)
458459

459460
# Python 3.14 will start with 3600
460461

@@ -471,7 +472,7 @@ def _write_atomic(path, data, mode=0o666):
471472
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
472473
# in PC/launcher.c must also be updated.
473474

474-
MAGIC_NUMBER = (3559).to_bytes(2, 'little') + b'\r\n'
475+
MAGIC_NUMBER = (3560).to_bytes(2, 'little') + b'\r\n'
475476

476477
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
477478

0 commit comments

Comments
 (0)