diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-11 07:34:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-11 07:34:04 (GMT) |
commit | 3b2ecbc1275bd05534885cee9ac1389987238561 (patch) | |
tree | bacd12708dc97881a474bc96b350919fea219b7a | |
parent | 7aa8fcc8eb700bd4ae4bc19e086ce7ff5916f7bd (diff) | |
download | cpython-3b2ecbc1275bd05534885cee9ac1389987238561.zip cpython-3b2ecbc1275bd05534885cee9ac1389987238561.tar.gz cpython-3b2ecbc1275bd05534885cee9ac1389987238561.tar.bz2 |
GH-108614: Increase importlib MAGIC for RESUME_CHECK instruction (#109247)
-rw-r--r-- | Lib/importlib/_bootstrap_external.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index 0717e20..7a83a58 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -455,6 +455,7 @@ _code_type = type(_write_atomic.__code__) # Python 3.13a1 3557 (Make the conversion to boolean in jumps explicit) # Python 3.13a1 3558 (Reorder the stack items for CALL) # Python 3.13a1 3559 (Generate opcode IDs from bytecodes.c) +# Python 3.13a1 3560 (Add RESUME_CHECK instruction) # Python 3.14 will start with 3600 @@ -471,7 +472,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 = (3559).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3560).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c |