Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc796d34

Browse files
authored
[3.11]gh-101454: fix documentation for END_ASYNC_FOR (#101455) (#101493)
gh-101454: fix documentation for END_ASYNC_FOR (#101455)(cherry picked from commit62251c3)
1 parent85cc5d0 commitc796d34

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎Doc/library/dis.rst‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,9 @@ the original TOS1.
563563
..opcode::END_ASYNC_FOR
564564

565565
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.
566+
when awaiting a next item. The stack contains the async iterable in
567+
TOS1 and the raised exception in TOS. Both are popped.
568+
If the exception is not:exc:`StopAsyncIteration`, it is re-raised.
570569

571570
..versionadded::3.8
572571

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp