Skip to content

Commit 526380e

Browse files
AA-Turnerhugovk
andauthored
GH-109190: Copyedit 3.12 What's New: Bytecode (#109821)
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 99fba5f commit 526380e

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

Doc/whatsnew/3.12.rst

+26-6
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,9 @@ dis
701701
:data:`dis.hasarg` collection instead.
702702
(Contributed by Irit Katriel in :gh:`94216`.)
703703

704+
* Add the :data:`dis.hasexc` collection to signify instructions that set
705+
an exception handler. (Contributed by Irit Katriel in :gh:`94216`.)
706+
704707
fractions
705708
---------
706709

@@ -884,6 +887,10 @@ statistics
884887
sys
885888
---
886889

890+
* Add the :mod:`sys.monitoring` namespace to expose the new :ref:`PEP 669
891+
<whatsnew312-pep669>` monitoring API.
892+
(Contributed by Mark Shannon in :gh:`103082`.)
893+
887894
* Add :func:`sys.activate_stack_trampoline` and
888895
:func:`sys.deactivate_stack_trampoline` for activating and deactivating
889896
stack profiler trampolines,
@@ -1083,9 +1090,27 @@ CPython bytecode changes
10831090
* Remove the :opcode:`!PRECALL` instruction. (Contributed by Mark Shannon in
10841091
:gh:`92925`.)
10851092

1093+
* Add the :opcode:`BINARY_SLICE` and :opcode:`STORE_SLICE` instructions.
1094+
(Contributed by Mark Shannon in :gh:`94163`.)
1095+
1096+
* Add the :opcode:`CALL_INTRINSIC_1` instructions.
1097+
(Contributed by Mark Shannon in :gh:`99005`.)
1098+
1099+
* Add the :opcode:`CALL_INTRINSIC_2` instruction.
1100+
(Contributed by Irit Katriel in :gh:`101799`.)
1101+
1102+
* Add the :opcode:`CLEANUP_THROW` instruction.
1103+
(Contributed by Brandt Bucher in :gh:`90997`.)
1104+
1105+
* Add the :opcode:`!END_SEND` instruction.
1106+
(Contributed by Mark Shannon in :gh:`103082`.)
1107+
10861108
* Add the :opcode:`LOAD_FAST_AND_CLEAR` instruction as part of the
10871109
implementation of :pep:`709`. (Contributed by Carl Meyer in :gh:`101441`.)
10881110

1111+
* Add the :opcode:`LOAD_FAST_CHECK` instruction.
1112+
(Contributed by Dennis Sweeney in :gh:`93143`.)
1113+
10891114
* Add the :opcode:`LOAD_FROM_DICT_OR_DEREF`, :opcode:`LOAD_FROM_DICT_OR_GLOBALS`,
10901115
and :opcode:`LOAD_LOCALS` opcodes as part of the implementation of :pep:`695`.
10911116
Remove the :opcode:`!LOAD_CLASSDEREF` opcode, which can be replaced with
@@ -1095,12 +1120,7 @@ CPython bytecode changes
10951120
* Add the :opcode:`LOAD_SUPER_ATTR` instruction. (Contributed by Carl Meyer and
10961121
Vladimir Matveev in :gh:`103497`.)
10971122

1098-
FOR_ITER new behavior is not mentioned
1099-
The fact that POP_JUMP_IF_* family of instructions are now real instructions is not mentioned
1100-
YIELD_VALUE need for an argument is not mentioned
1101-
1102-
1103-
1123+
* Add the :opcode:`RETURN_CONST` instruction. (Contributed by Wenyang Wang in :gh:`101632`.)
11041124

11051125
Demos and Tools
11061126
===============

Misc/NEWS.d/3.12.0a4.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Remove :opcode:`UNARY_POSITIVE`, :opcode:`ASYNC_GEN_WRAP` and
2323
.. nonce: D7H6j4
2424
.. section: Core and Builtins
2525
26-
Add new :opcode:`CALL_INSTRINSIC_1` instruction. Remove
26+
Add new :opcode:`CALL_INTRINSIC_1` instruction. Remove
2727
:opcode:`IMPORT_STAR`, :opcode:`PRINT_EXPR` and
2828
:opcode:`STOPITERATION_ERROR`, replacing them with the
29-
:opcode:`CALL_INSTRINSIC_1` instruction.
29+
:opcode:`CALL_INTRINSIC_1` instruction.
3030

3131
..
3232

0 commit comments

Comments
 (0)