]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-135447: Document the ``NOT_TAKEN`` & ``POP_ITER`` bytecode instructions (#135803)
authorYongzi Li <204532581+Yzi-Li@users.noreply.github.com>
Sun, 28 Sep 2025 16:46:01 +0000 (00:46 +0800)
committerGitHub <noreply@github.com>
Sun, 28 Sep 2025 16:46:01 +0000 (16:46 +0000)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
Doc/library/dis.rst

index 21bd1db5f338de81ab499e00d7d799e7d6ea9dd3..711ef55def694937ab05e4d8472e7f72e0659891 100644 (file)
@@ -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.
 
 
+.. 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
 
    Removes the top-of-stack item::