diff options
author | Mark Shannon <mark@hotpy.org> | 2021-12-14 23:40:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 23:40:44 (GMT) |
commit | f54fee7f37563fbd569596cf94aad023ac6c3179 (patch) | |
tree | 5bca9ebb5e9525f7291d75ff3c9b5684f48f44f4 /Doc/whatsnew/3.11.rst | |
parent | 9f8f45144b6f0ad481e80570538cce89b414f7f9 (diff) | |
download | cpython-f54fee7f37563fbd569596cf94aad023ac6c3179.zip cpython-f54fee7f37563fbd569596cf94aad023ac6c3179.tar.gz cpython-f54fee7f37563fbd569596cf94aad023ac6c3179.tar.bz2 |
Document new call opcodes for 3.11 (GH-30107)
Diffstat (limited to 'Doc/whatsnew/3.11.rst')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 793075c..3005d1d 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -373,9 +373,11 @@ CPython bytecode changes * Replaced all numeric ``BINARY_*`` and ``INPLACE_*`` instructions with a single :opcode:`BINARY_OP` implementation. -* Added a new :opcode:`CALL_METHOD_KW` opcode. Calls a method in a similar - fashion as :opcode:`CALL_METHOD`, but also supports keyword arguments. Works - in tandem with :opcode:`LOAD_METHOD`. +* Replaced the three call instructions: :opcode:`CALL_FUNCTION`, + :opcode:`CALL_FUNCTION_KW` and :opcode:`CALL_METHOD` with + :opcode:`CALL_NO_KW`, :opcode:`CALL_KW` and :opcode:`PRECALL_METHOD`. + This decouples the argument shifting for methods from the handling of + keyword arguments and allows better specialization of calls. * Removed ``COPY_DICT_WITHOUT_KEYS``. |