mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-47186: Replace JUMP_IF_NOT_EG_MATCH by CHECK_EG_MATCH + jump (GH-32309)
This commit is contained in:
parent
6c6e0408a6
commit
32091df41c
10 changed files with 99 additions and 97 deletions
|
|
@ -398,6 +398,7 @@ _code_type = type(_write_atomic.__code__)
|
|||
# Python 3.11a6 3488 (LOAD_GLOBAL can push additional NULL)
|
||||
# Python 3.11a6 3489 (Add JUMP_BACKWARD, remove JUMP_ABSOLUTE)
|
||||
# Python 3.11a6 3490 (remove JUMP_IF_NOT_EXC_MATCH, add CHECK_EXC_MATCH)
|
||||
# Python 3.11a6 3491 (remove JUMP_IF_NOT_EG_MATCH, add CHECK_EG_MATCH)
|
||||
|
||||
# Python 3.12 will start with magic number 3500
|
||||
|
||||
|
|
@ -412,7 +413,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 = (3490).to_bytes(2, 'little') + b'\r\n'
|
||||
MAGIC_NUMBER = (3491).to_bytes(2, 'little') + b'\r\n'
|
||||
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
|
||||
|
||||
_PYCACHE = '__pycache__'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue