mirror of
https://github.com/python/cpython
synced 2024-09-19 15:01:28 +00:00
GH-109190: Copyedit 3.12 What's New: Bytecode (#109821)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
99fba5f156
commit
526380e286
|
@ -701,6 +701,9 @@ dis
|
||||||
:data:`dis.hasarg` collection instead.
|
:data:`dis.hasarg` collection instead.
|
||||||
(Contributed by Irit Katriel in :gh:`94216`.)
|
(Contributed by Irit Katriel in :gh:`94216`.)
|
||||||
|
|
||||||
|
* Add the :data:`dis.hasexc` collection to signify instructions that set
|
||||||
|
an exception handler. (Contributed by Irit Katriel in :gh:`94216`.)
|
||||||
|
|
||||||
fractions
|
fractions
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
@ -884,6 +887,10 @@ statistics
|
||||||
sys
|
sys
|
||||||
---
|
---
|
||||||
|
|
||||||
|
* Add the :mod:`sys.monitoring` namespace to expose the new :ref:`PEP 669
|
||||||
|
<whatsnew312-pep669>` monitoring API.
|
||||||
|
(Contributed by Mark Shannon in :gh:`103082`.)
|
||||||
|
|
||||||
* Add :func:`sys.activate_stack_trampoline` and
|
* Add :func:`sys.activate_stack_trampoline` and
|
||||||
:func:`sys.deactivate_stack_trampoline` for activating and deactivating
|
:func:`sys.deactivate_stack_trampoline` for activating and deactivating
|
||||||
stack profiler trampolines,
|
stack profiler trampolines,
|
||||||
|
@ -1083,9 +1090,27 @@ CPython bytecode changes
|
||||||
* Remove the :opcode:`!PRECALL` instruction. (Contributed by Mark Shannon in
|
* Remove the :opcode:`!PRECALL` instruction. (Contributed by Mark Shannon in
|
||||||
:gh:`92925`.)
|
:gh:`92925`.)
|
||||||
|
|
||||||
|
* Add the :opcode:`BINARY_SLICE` and :opcode:`STORE_SLICE` instructions.
|
||||||
|
(Contributed by Mark Shannon in :gh:`94163`.)
|
||||||
|
|
||||||
|
* Add the :opcode:`CALL_INTRINSIC_1` instructions.
|
||||||
|
(Contributed by Mark Shannon in :gh:`99005`.)
|
||||||
|
|
||||||
|
* Add the :opcode:`CALL_INTRINSIC_2` instruction.
|
||||||
|
(Contributed by Irit Katriel in :gh:`101799`.)
|
||||||
|
|
||||||
|
* Add the :opcode:`CLEANUP_THROW` instruction.
|
||||||
|
(Contributed by Brandt Bucher in :gh:`90997`.)
|
||||||
|
|
||||||
|
* Add the :opcode:`!END_SEND` instruction.
|
||||||
|
(Contributed by Mark Shannon in :gh:`103082`.)
|
||||||
|
|
||||||
* Add the :opcode:`LOAD_FAST_AND_CLEAR` instruction as part of the
|
* Add the :opcode:`LOAD_FAST_AND_CLEAR` instruction as part of the
|
||||||
implementation of :pep:`709`. (Contributed by Carl Meyer in :gh:`101441`.)
|
implementation of :pep:`709`. (Contributed by Carl Meyer in :gh:`101441`.)
|
||||||
|
|
||||||
|
* Add the :opcode:`LOAD_FAST_CHECK` instruction.
|
||||||
|
(Contributed by Dennis Sweeney in :gh:`93143`.)
|
||||||
|
|
||||||
* Add the :opcode:`LOAD_FROM_DICT_OR_DEREF`, :opcode:`LOAD_FROM_DICT_OR_GLOBALS`,
|
* Add the :opcode:`LOAD_FROM_DICT_OR_DEREF`, :opcode:`LOAD_FROM_DICT_OR_GLOBALS`,
|
||||||
and :opcode:`LOAD_LOCALS` opcodes as part of the implementation of :pep:`695`.
|
and :opcode:`LOAD_LOCALS` opcodes as part of the implementation of :pep:`695`.
|
||||||
Remove the :opcode:`!LOAD_CLASSDEREF` opcode, which can be replaced with
|
Remove the :opcode:`!LOAD_CLASSDEREF` opcode, which can be replaced with
|
||||||
|
@ -1095,12 +1120,7 @@ CPython bytecode changes
|
||||||
* Add the :opcode:`LOAD_SUPER_ATTR` instruction. (Contributed by Carl Meyer and
|
* Add the :opcode:`LOAD_SUPER_ATTR` instruction. (Contributed by Carl Meyer and
|
||||||
Vladimir Matveev in :gh:`103497`.)
|
Vladimir Matveev in :gh:`103497`.)
|
||||||
|
|
||||||
FOR_ITER new behavior is not mentioned
|
* Add the :opcode:`RETURN_CONST` instruction. (Contributed by Wenyang Wang in :gh:`101632`.)
|
||||||
The fact that POP_JUMP_IF_* family of instructions are now real instructions is not mentioned
|
|
||||||
YIELD_VALUE need for an argument is not mentioned
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Demos and Tools
|
Demos and Tools
|
||||||
===============
|
===============
|
||||||
|
|
|
@ -23,10 +23,10 @@ Remove :opcode:`UNARY_POSITIVE`, :opcode:`ASYNC_GEN_WRAP` and
|
||||||
.. nonce: D7H6j4
|
.. nonce: D7H6j4
|
||||||
.. section: Core and Builtins
|
.. section: Core and Builtins
|
||||||
|
|
||||||
Add new :opcode:`CALL_INSTRINSIC_1` instruction. Remove
|
Add new :opcode:`CALL_INTRINSIC_1` instruction. Remove
|
||||||
:opcode:`IMPORT_STAR`, :opcode:`PRINT_EXPR` and
|
:opcode:`IMPORT_STAR`, :opcode:`PRINT_EXPR` and
|
||||||
:opcode:`STOPITERATION_ERROR`, replacing them with the
|
:opcode:`STOPITERATION_ERROR`, replacing them with the
|
||||||
:opcode:`CALL_INSTRINSIC_1` instruction.
|
:opcode:`CALL_INTRINSIC_1` instruction.
|
||||||
|
|
||||||
..
|
..
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue