mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix definition of a generator iterator
in glossary.rst
(GH-128952)
Fix possible typo/grammar in glossary.rst As discussed in https://discuss.python.org/t/typo-in-glossary-entry-for-generator-iterator/77163
This commit is contained in:
parent
d4544cb232
commit
8174770d31
1 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ Glossary
|
|||
:keyword:`yield` expression.
|
||||
|
||||
Each :keyword:`yield` temporarily suspends processing, remembering the
|
||||
location execution state (including local variables and pending
|
||||
execution state (including local variables and pending
|
||||
try-statements). When the *asynchronous generator iterator* effectively
|
||||
resumes with another awaitable returned by :meth:`~object.__anext__`, it
|
||||
picks up where it left off. See :pep:`492` and :pep:`525`.
|
||||
|
@ -564,7 +564,7 @@ Glossary
|
|||
An object created by a :term:`generator` function.
|
||||
|
||||
Each :keyword:`yield` temporarily suspends processing, remembering the
|
||||
location execution state (including local variables and pending
|
||||
execution state (including local variables and pending
|
||||
try-statements). When the *generator iterator* resumes, it picks up where
|
||||
it left off (in contrast to functions which start fresh on every
|
||||
invocation).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue