Skip to content

Documentation of END_ASYNC_FOR is out of date and incorrect #101454

Closed
@iritkatriel

Description

@iritkatriel

Documentation of END_ASYNC_FOR is both out of date and incorrect:

Terminates an [async for](https://docs.python.org/3.12/reference/compound_stmts.html#async-for) loop. Handles an exception raised when awaiting a next item. If STACK[-1] is [StopAsyncIteration](https://docs.python.org/3.12/library/exceptions.html#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.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixesdocsDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions