diff options
author | Andrés Delfino <adelfino@gmail.com> | 2018-08-09 15:45:41 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2018-08-09 15:45:41 (GMT) |
commit | cf2c5e8e2867e41d34079b2e464bbbe653fb7981 (patch) | |
tree | 8ee7e103b75b2a180d20a1774ad89bcdd503050f /Doc | |
parent | 599bfa18f8ebcb23af300b6855934048c3c64e7d (diff) | |
download | cpython-cf2c5e8e2867e41d34079b2e464bbbe653fb7981.zip cpython-cf2c5e8e2867e41d34079b2e464bbbe653fb7981.tar.gz cpython-cf2c5e8e2867e41d34079b2e464bbbe653fb7981.tar.bz2 |
Improve grammar of asynchronous iterator glossary entry (GH-8657)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/glossary.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 668dbb2..6996057 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -123,10 +123,10 @@ Glossary :meth:`__aiter__` method. Introduced by :pep:`492`. 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. - :keyword:`async for` resolves awaitable returned from asynchronous - iterator's :meth:`__anext__` method until it raises + :keyword:`async for` resolves the awaitables returned by an asynchronous + iterator's :meth:`__anext__` method until it raises a :exc:`StopAsyncIteration` exception. Introduced by :pep:`492`. attribute |