diff options
author | Mark Shannon <mark@hotpy.org> | 2022-02-21 18:26:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 18:26:47 (GMT) |
commit | 59585d6b2ea50d7bc3a9b336da5bde61367f527c (patch) | |
tree | 582cbdf9fd0c4e3b3e19e3474154b1a252a97654 /Lib/importlib/_bootstrap_external.py | |
parent | 0a222db2bca63070f429c0e613707da1bdfaf0e0 (diff) | |
download | cpython-59585d6b2ea50d7bc3a9b336da5bde61367f527c.zip cpython-59585d6b2ea50d7bc3a9b336da5bde61367f527c.tar.gz cpython-59585d6b2ea50d7bc3a9b336da5bde61367f527c.tar.bz2 |
bpo-46329: Streamline calling sequence a bit. (GH-31465)
* Move handling of bound-methods to PRECALL.
* Remove call_shape.postcall_shrink
* Remove call_shape.callable
* Remove call_shape.callable. Change CALL oparg to match PRECALL oparg.
* Move KW_NAMES before PRECALL.
* Update opcode docs in dis.rst
Diffstat (limited to 'Lib/importlib/_bootstrap_external.py')
-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 85f50eb..5255d7e 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -386,6 +386,7 @@ _code_type = type(_write_atomic.__code__) # ROT_TWO/ROT_THREE/ROT_FOUR/ROT_N with SWAP) # Python 3.11a5 3478 (New CALL opcodes) # Python 3.11a5 3479 (Add PUSH_NULL opcode) +# Python 3.11a5 3480 (New CALL opcodes, second iteration) # Python 3.12 will start with magic number 3500 @@ -403,7 +404,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 = (3479).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3480).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c _PYCACHE = '__pycache__' |