We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85cc5d0 commit c796d34Copy full SHA for c796d34
Doc/library/dis.rst
@@ -563,10 +563,9 @@ the original TOS1.
563
.. opcode:: END_ASYNC_FOR
564
565
Terminates an :keyword:`async for` loop. Handles an exception raised
566
- when awaiting a next item. If TOS is :exc:`StopAsyncIteration` pop 3
567
- values from the stack and restore the exception state using the second
568
- of them. Otherwise re-raise the exception using the value
569
- 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.
570
571
.. versionadded:: 3.8
572
0 commit comments