8000 Fix definition of a `generator iterator` in `glossary.rst` (GH-128952) · miss-islington/cpython@83db31c · GitHub
[go: up one dir, main page]

Skip to content

Commit 83db31c

Browse files
dmoissetmiss-islington
authored andcommitted
Fix definition of a generator iterator in glossary.rst (pythonGH-128952)
Fix possible typo/grammar in glossary.rst As discussed in https://discuss.python.org/t/typo-in-glossary-entry-for-generator-iterator/77163 (cherry picked from commit 8174770) Co-authored-by: Daniel F Moisset <dfmoisset@gmail.com>
1 parent f45da82 commit 83db31c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/glossary.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Glossary
118118
:keyword:`yield` expression.
119119

120120
Each :keyword:`yield` temporarily suspends processing, remembering the
121-
location execution state (including local variables and pending
121+
execution state (including local variables and pending
122122
try-statements). When the *asynchronous generator iterator* effectively
123123
resumes with another awaitable returned by :meth:`~object.__anext__`, it
124124
picks up where it left off. See :pep:`492` and :pep:`525`.
@@ -505,7 +505,7 @@ Glossary
505505
An object created by a :term:`generator` function.
506506

507507
Each :keyword:`yield` temporarily suspends processing, remembering the
508-
location execution state (including local variables and pending
508+
execution state (including local variables and pending
509509
try-statements). When the *generator iterator* resumes, it picks up where
510510
it left off (in contrast to functions which start fresh on every
511511
invocation).

0 commit comments

Comments
 (0)
0