summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2023-09-28 21:38:08 (GMT)
committerGitHub <noreply@github.com>2023-09-28 21:38:08 (GMT)
commit335e3d59e04d53c11574b37f320b22061bdcce41 (patch)
tree2d312704bb7816966d6a1e7b7443a41f2d710d97 /Doc/whatsnew
parentef99f5e968be2d6a15232a4fbb9bdf5f7a8c2686 (diff)
downloadcpython-335e3d59e04d53c11574b37f320b22061bdcce41.zip
cpython-335e3d59e04d53c11574b37f320b22061bdcce41.tar.gz
cpython-335e3d59e04d53c11574b37f320b22061bdcce41.tar.bz2
[3.12] GH-109190: Copyedit 3.12 What's New: Bytecode (GH-109821) (#110047)
. (cherry picked from commit 526380e28644236bde9e41b949497ca1ee22653f)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.12.rst27
1 files changed, 27 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index f2e94f9..caef15f 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -701,6 +701,9 @@ dis
:data:`dis.hasarg` collection instead.
(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
---------
@@ -884,6 +887,10 @@ statistics
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
:func:`sys.deactivate_stack_trampoline` for activating and deactivating
stack profiler trampolines,
@@ -1083,9 +1090,27 @@ CPython bytecode changes
* Remove the :opcode:`!PRECALL` instruction. (Contributed by Mark Shannon in
: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
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`,
and :opcode:`LOAD_LOCALS` opcodes as part of the implementation of :pep:`695`.
Remove the :opcode:`!LOAD_CLASSDEREF` opcode, which can be replaced with
@@ -1095,6 +1120,8 @@ CPython bytecode changes
* Add the :opcode:`LOAD_SUPER_ATTR` instruction. (Contributed by Carl Meyer and
Vladimir Matveev in :gh:`103497`.)
+* Add the :opcode:`RETURN_CONST` instruction. (Contributed by Wenyang Wang in :gh:`101632`.)
+
Demos and Tools
===============