diff options
author | Brandt Bucher <brandt@python.org> | 2022-01-26 20:47:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-26 20:47:45 (GMT) |
commit | 85483668647e7840c7b9a1877caaf2ef14a4443f (patch) | |
tree | 48c1ba3dc17fb6c39d100e114178e1cc9ca19e88 /Lib/importlib | |
parent | d4a85f104bf9d2e368f25c9a567eaaa2cc39a96a (diff) | |
download | cpython-85483668647e7840c7b9a1877caaf2ef14a4443f.zip cpython-85483668647e7840c7b9a1877caaf2ef14a4443f.tar.gz cpython-85483668647e7840c7b9a1877caaf2ef14a4443f.tar.bz2 |
bpo-46528: Simplify the VM's stack manipulations (GH-30902)
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap_external.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index cd4f69c..c05add9 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -382,6 +382,8 @@ _code_type = type(_write_atomic.__code__) # Python 3.11a4 3474 (Add RESUME opcode) # Python 3.11a5 3475 (Add RETURN_GENERATOR opcode) # Python 3.11a5 3476 (Add ASYNC_GEN_WRAP opcode) +# Python 3.11a5 3477 (Replace DUP_TOP/DUP_TOP_TWO with COPY and +# ROT_TWO/ROT_THREE/ROT_FOUR/ROT_N with SWAP) # Python 3.12 will start with magic number 3500 @@ -395,7 +397,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 = (3476).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3477).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c _PYCACHE = '__pycache__' |