Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67b769f commit 4b8cdfcCopy full SHA for 4b8cdfc
1 file changed
Doc/reference/compound_stmts.rst
@@ -796,12 +796,12 @@ The :keyword:`!async for` statement
796
.. productionlist:: python-grammar
797
async_for_stmt: "async" `for_stmt`
798
799
-An :term:`asynchronous iterable` is able to call asynchronous code in its
800
-*iter* implementation, and :term:`asynchronous iterator` can call asynchronous
801
-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.
802
803
The ``async for`` statement allows convenient iteration over asynchronous
804
-iterators.
+iterables.
805
806
The following code::
807
0 commit comments