https://github.com/python/cpython/commit/519bc470fc874b9aaad8eed0de7b99736d18c09f
commit: 519bc470fc874b9aaad8eed0de7b99736d18c09f
branch: main
author: Yongzi Li <[email protected]>
committer: AA-Turner <[email protected]>
date: 2025-09-28T16:46:01Z
summary:

gh-135447: Document the ``NOT_TAKEN`` & ``POP_ITER`` bytecode instructions 
(#135803)

Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Ken Jin <[email protected]>

files:
M Doc/library/dis.rst

diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 21bd1db5f338de..711ef55def6949 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -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::

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to