Document new call opcodes for 3.11 (GH-30107)

This commit is contained in:
Mark Shannon 2021-12-14 23:40:44 +00:00 committed by GitHub
parent 9f8f45144b
commit f54fee7f37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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``.