mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Use low bit of LOAD_GLOBAL's oparg to indicate whether it should push an additional NULL. (GH-31933)
This commit is contained in:
parent
ef1327e3b6
commit
3011a097bd
7 changed files with 212 additions and 196 deletions
|
@ -395,6 +395,7 @@ _code_type = type(_write_atomic.__code__)
|
|||
# Python 3.11a5 3485 (Add an oparg to GET_AWAITABLE)
|
||||
# Python 3.11a6 3486 (Use inline caching for PRECALL and CALL)
|
||||
# Python 3.11a6 3487 (Remove the adaptive "oparg counter" mechanism)
|
||||
# Python 3.11a6 3488 (LOAD_GLOBAL can push additional NULL)
|
||||
|
||||
# Python 3.12 will start with magic number 3500
|
||||
|
||||
|
@ -409,7 +410,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 = (3487).to_bytes(2, 'little') + b'\r\n'
|
||||
MAGIC_NUMBER = (3488).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