Skip to content

Commit 7cb3dad

Browse files
committed
Document new bytecodes.
1 parent 8b73d0d commit 7cb3dad

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Doc/library/dis.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,13 @@ All of the following opcodes use their arguments.
942942
Set bytecode counter to *target*.
943943

944944

945+
.. opcode:: JUMP_NO_INTERRUPT (target)
946+
947+
Set bytecode counter to *target*. Do not check for interrupts.
948+
949+
.. versionadded:: 3.11
950+
951+
945952
.. opcode:: FOR_ITER (delta)
946953

947954
TOS is an :term:`iterator`. Call its :meth:`~iterator.__next__` method. If
@@ -1220,6 +1227,14 @@ All of the following opcodes use their arguments.
12201227
.. versionadded:: 3.11
12211228

12221229

1230+
.. opcode:: RETURN_GENERATOR
1231+
1232+
Create a generator, coroutine, or async generator from the current frame.
1233+
Clear the current frame and return the newly created generator.
1234+
1235+
.. versionadded:: 3.11
1236+
1237+
12231238
.. opcode:: HAVE_ARGUMENT
12241239

12251240
This is not really an opcode. It identifies the dividing line between

0 commit comments

Comments
 (0)