mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Improve grammar of asynchronous iterator glossary entry (GH-8657)
This commit is contained in:
parent
599bfa18f8
commit
cf2c5e8e28
1 changed files with 3 additions and 3 deletions
|
@ -123,10 +123,10 @@ Glossary
|
||||||
:meth:`__aiter__` method. Introduced by :pep:`492`.
|
:meth:`__aiter__` method. Introduced by :pep:`492`.
|
||||||
|
|
||||||
asynchronous iterator
|
asynchronous iterator
|
||||||
An object that implements :meth:`__aiter__` and :meth:`__anext__`
|
An object that implements the :meth:`__aiter__` and :meth:`__anext__`
|
||||||
methods. ``__anext__`` must return an :term:`awaitable` object.
|
methods. ``__anext__`` must return an :term:`awaitable` object.
|
||||||
:keyword:`async for` resolves awaitable returned from asynchronous
|
:keyword:`async for` resolves the awaitables returned by an asynchronous
|
||||||
iterator's :meth:`__anext__` method until it raises
|
iterator's :meth:`__anext__` method until it raises a
|
||||||
:exc:`StopAsyncIteration` exception. Introduced by :pep:`492`.
|
:exc:`StopAsyncIteration` exception. Introduced by :pep:`492`.
|
||||||
|
|
||||||
attribute
|
attribute
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue