mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
Document new call opcodes for 3.11 (GH-30107)
This commit is contained in:
parent
9f8f45144b
commit
f54fee7f37
1 changed files with 5 additions and 3 deletions
|
@ -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``.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue