[3.12] GH-109190: Copyedit 3.12 What's New: Bytecode (GH-109821) (#11… · python/cpython@335e3d5

GitHub

@@ -701,6 +701,9 @@ dis

701701:data:`dis.hasarg` collection instead.

702702 (Contributed by Irit Katriel in :gh:`94216`.)

703703704+* Add the :data:`dis.hasexc` collection to signify instructions that set

705+ an exception handler. (Contributed by Irit Katriel in :gh:`94216`.)

706+704707fractions

705708---------

706709@@ -884,6 +887,10 @@ statistics

884887sys

885888---

886889890+* 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`.)

108510921093+* 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`.)

108811101111+* 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,6 +1120,8 @@ CPython bytecode changes

10951120* Add the :opcode:`LOAD_SUPER_ATTR` instruction. (Contributed by Carl Meyer and

10961121 Vladimir Matveev in :gh:`103497`.)

109711221123+* Add the :opcode:`RETURN_CONST` instruction. (Contributed by Wenyang Wang in :gh:`101632`.)

1124+10981125Demos and Tools

10991126===============

11001127