Skip to content

Commit

Permalink
pythongh-101454: fix documentation for END_ASYNC_FOR (python#101455)
Browse files Browse the repository at this point in the history
(cherry picked from commit 62251c3)
  • Loading branch information
iritkatriel committed Feb 1, 2023
1 parent 85cc5d0 commit 21d2735
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Doc/library/dis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,9 @@ the original TOS1.
.. opcode:: END_ASYNC_FOR

Terminates an :keyword:`async for` loop. Handles an exception raised
when awaiting a next item. If TOS is :exc:`StopAsyncIteration` pop 3
values from the stack and restore the exception state using the second
of them. Otherwise re-raise the exception using the value
from the stack. An exception handler block is removed from the block stack.
when awaiting a next item. The stack contains the async iterable in
TOS1 and the raised exception in TOS. Both are popped.
If the exception is not :exc:`StopAsyncIteration`, it is re-raised.

.. versionadded:: 3.8

Expand Down

0 comments on commit 21d2735

Please sign in to comment.