Skip to content

Commit

Permalink
bpo-41879: Doc: Fix description of async for statement (pythonGH-23548)
Browse files Browse the repository at this point in the history
Fix the wording in the documentation of `async for` to correctly describe asynchronous iterables.  This fix is relevant for version 3.7 onward.
  • Loading branch information
nickgaya authored Dec 11, 2020
1 parent 67b769f commit 4b8cdfc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Doc/reference/compound_stmts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -796,12 +796,12 @@ The :keyword:`!async for` statement
.. productionlist:: python-grammar
async_for_stmt: "async" `for_stmt`

An :term:`asynchronous iterable` is able to call asynchronous code in its
*iter* implementation, and :term:`asynchronous iterator` can call asynchronous
code in its *next* method.
An :term:`asynchronous iterable` provides an ``__aiter__`` method that directly
returns an :term:`asynchronous iterator`, which can call asynchronous code in
its ``__anext__`` method.

The ``async for`` statement allows convenient iteration over asynchronous
iterators.
iterables.

The following code::

Expand Down

0 comments on commit 4b8cdfc

Please sign in to comment.