Skip to content

Commit f54fee7

Browse files
authored
Document new call opcodes for 3.11 (GH-30107)
1 parent 9f8f451 commit f54fee7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Doc/whatsnew/3.11.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,11 @@ CPython bytecode changes
373373
* Replaced all numeric ``BINARY_*`` and ``INPLACE_*`` instructions with a single
374374
:opcode:`BINARY_OP` implementation.
375375

376-
* Added a new :opcode:`CALL_METHOD_KW` opcode. Calls a method in a similar
377-
fashion as :opcode:`CALL_METHOD`, but also supports keyword arguments. Works
378-
in tandem with :opcode:`LOAD_METHOD`.
376+
* Replaced the three call instructions: :opcode:`CALL_FUNCTION`,
377+
:opcode:`CALL_FUNCTION_KW` and :opcode:`CALL_METHOD` with
378+
:opcode:`CALL_NO_KW`, :opcode:`CALL_KW` and :opcode:`PRECALL_METHOD`.
379+
This decouples the argument shifting for methods from the handling of
380+
keyword arguments and allows better specialization of calls.
379381

380382
* Removed ``COPY_DICT_WITHOUT_KEYS``.
381383

0 commit comments

Comments
 (0)