mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-135447: Document the `NOT_TAKEN & POP_ITER` bytecode instructions (#135803)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Ken Jin <kenjin4096@gmail.com>
This commit is contained in:
parent
e18dda96c9
commit
519bc470fc
1 changed files with 16 additions and 0 deletions
|
|
@ -585,6 +585,22 @@ operations on it as if it was a Python list. The top of the stack corresponds to
|
||||||
generate line tracing events.
|
generate line tracing events.
|
||||||
|
|
||||||
|
|
||||||
|
.. opcode:: NOT_TAKEN
|
||||||
|
|
||||||
|
Do nothing code.
|
||||||
|
Used by the interpreter to record :monitoring-event:`BRANCH_LEFT`
|
||||||
|
and :monitoring-event:`BRANCH_RIGHT` events for :mod:`sys.monitoring`.
|
||||||
|
|
||||||
|
.. versionadded:: 3.14
|
||||||
|
|
||||||
|
|
||||||
|
.. opcode:: POP_ITER
|
||||||
|
|
||||||
|
Removes the iterator from the top of the stack.
|
||||||
|
|
||||||
|
.. versionadded:: 3.14
|
||||||
|
|
||||||
|
|
||||||
.. opcode:: POP_TOP
|
.. opcode:: POP_TOP
|
||||||
|
|
||||||
Removes the top-of-stack item::
|
Removes the top-of-stack item::
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue