diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-09-12 10:36:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 10:36:17 (GMT) |
commit | 8b55adfa8ff05477b4be7def36db7b66c73f181d (patch) | |
tree | 33552a28b4465bbf0bc6d562063320fbf0fbae8d /Lib/importlib | |
parent | 247ee1bf841524667f883ebba5e343101f609026 (diff) | |
download | cpython-8b55adfa8ff05477b4be7def36db7b66c73f181d.zip cpython-8b55adfa8ff05477b4be7def36db7b66c73f181d.tar.gz cpython-8b55adfa8ff05477b4be7def36db7b66c73f181d.tar.bz2 |
gh-109256: allocate opcode IDs for internal opcodes in their own range (#109269)
Diffstat (limited to 'Lib/importlib')
-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 843af30..d671d17 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -457,6 +457,7 @@ _code_type = type(_write_atomic.__code__) # Python 3.13a1 3559 (Generate opcode IDs from bytecodes.c) # Python 3.13a1 3560 (Add RESUME_CHECK instruction) # Python 3.13a1 3561 (Add cache entry to branch instructions) +# Python 3.13a1 3562 (Assign opcode IDs for internal ops in separate range) # Python 3.14 will start with 3600 @@ -473,7 +474,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 = (3561).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3562).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c |