| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -796,12 +796,12 @@ The :keyword:`!async for` statement | |||
| 796 | 796 | .. productionlist:: python-grammar | |
| 797 | 797 | async_for_stmt: "async" `for_stmt` | |
| 798 | 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. | ||
| 799 | + An :term:`asynchronous iterable` provides an ``__aiter__`` method that directly | ||
| 800 | + returns an :term:`asynchronous iterator`, which can call asynchronous code in | ||
| 801 | + its ``__anext__`` method. | ||
| 802 | 802 | ||
| 803 | 803 | The ``async for`` statement allows convenient iteration over asynchronous | |
| 804 | - iterators. | ||
| 804 | + iterables. | ||
| 805 | 805 | ||
| 806 | 806 | The following code:: | |
| 807 | 807 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments