diff options
author | Mark Shannon <mark@hotpy.org> | 2022-03-17 16:14:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-17 16:14:57 (GMT) |
commit | 3011a097bd9500c007bd8b8d005edeea895f6b44 (patch) | |
tree | d2637ab682e1265eaf23316add1039b3829abb19 /Lib/importlib | |
parent | ef1327e3b622e0cafdf8bfc1f480fed0dd386be6 (diff) | |
download | cpython-3011a097bd9500c007bd8b8d005edeea895f6b44.zip cpython-3011a097bd9500c007bd8b8d005edeea895f6b44.tar.gz cpython-3011a097bd9500c007bd8b8d005edeea895f6b44.tar.bz2 |
Use low bit of LOAD_GLOBAL's oparg to indicate whether it should push an additional NULL. (GH-31933)
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 a6f0a1b..48b55bb 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -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__' |