Skip to content

[3.15] gh-145667: Update dis docs for GET_ITER, FOR_ITER and SEND changes (GH-161867) - #161935

Merged
asvetlov merged 1 commit into
python:3.15from
asvetlov:backport-d8d560b-3.15
Nov 14, 2026
Merged

asvetlov merged 1 commit into
python:3.15from
asvetlov:backport-d8d560b-3.15

Conversation

@asvetlov

@asvetlov asvetlov commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Manual backport of GH-161867 (cherry picked from commit d8d560b); miss-islington hit a conflict.

The only conflict was in Doc/tools/removed-ids.txt, whose context differs on 3.15; resolved by adding just the library/dis.html: opcode-GET_YIELD_FROM_ITER line. dis.rst applied cleanly, and the documented opcode semantics (GET_ITER modes, FOR_ITER/SEND/END_SEND/POP_ITER stack effects) were checked against Python/bytecodes.c and Python/ceval.c on 3.15.

make -C Doc check and make -C Doc html (with --fail-on-warning) pass.

🤖 Generated with Claude Code

…ND changes (pythonGH-161867)

* pythongh-145667: Update dis docs for GET_ITER, FOR_ITER and SEND changes

Document the (iterator, index or NULL) pair pushed by GET_ITER and
consumed by FOR_ITER, SEND, END_SEND and POP_ITER, and the yield_from
argument of GET_ITER that replaced GET_YIELD_FROM_ITER in 3.15.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Exclude removed GET_YIELD_FROM_ITER anchor from the HTML ID check

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit d8d560b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant