Skip to content

Commit c82079e

Browse files
miss-islingtonYzi-LiAA-TurnerFidget-Spinner
authored
[3.14] gh-135447: Document the NOT_TAKEN & POP_ITER bytecode instructions (GH-135803) (#139399)
Co-authored-by: Yongzi Li <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Ken Jin <[email protected]>
1 parent 73a575f commit c82079e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Doc/library/dis.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,22 @@ operations on it as if it was a Python list. The top of the stack corresponds to
585585
generate line tracing events.
586586

587587

588+
.. opcode:: NOT_TAKEN
589+
590+
Do nothing code.
591+
Used by the interpreter to record :monitoring-event:`BRANCH_LEFT`
592+
and :monitoring-event:`BRANCH_RIGHT` events for :mod:`sys.monitoring`.
593+
594+
.. versionadded:: 3.14
595+
596+
597+
.. opcode:: POP_ITER
598+
599+
Removes the iterator from the top of the stack.
600+
601+
.. versionadded:: 3.14
602+
603+
588604
.. opcode:: POP_TOP
589605

590606
Removes the top-of-stack item::

0 commit comments

Comments
 (0)