Skip to content

Commit 22c8eea

Browse files
committed
add docs
1 parent 1195254 commit 22c8eea

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

Doc/library/dis.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,6 +1721,13 @@ iterations of the loop.
17211721
Previously, this instruction also pushed a boolean value indicating
17221722
success (``True``) or failure (``False``).
17231723

1724+
.. opcode:: CHECK_PERIODIC
1725+
1726+
Detects and handles certain conditions of interpreter state, such as
1727+
signals and async exceptions. This bytecode is emitted alongside calls
1728+
and backward jumps to ensure that it appears in any long execution path.
1729+
1730+
.. versionadded:: 3.14
17241731

17251732
.. opcode:: RESUME (context)
17261733

Doc/whatsnew/3.14.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,6 +1696,9 @@ CPython Bytecode Changes
16961696
* Replaced the opcode ``BINARY_SUBSCR`` by :opcode:`BINARY_OP` with oparg ``NB_SUBSCR``.
16971697
(Contributed by Irit Katriel in :gh:`100239`.)
16981698

1699+
* Added opcode ``CHECK_PERIODIC`` which detects and handles signals, async exceptions,
1700+
etc. (Contributed by Irit Katriel in :gh:`132532`.)
1701+
16991702
Porting to Python 3.14
17001703
======================
17011704

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add :opcode:`CHECK_PERIODIC` for signal checks, etc.

0 commit comments

Comments
 (0)