]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix definition of a `generator iterator` in `glossary.rst` (GH-128952)
authorDaniel F Moisset <dfmoisset@gmail.com>
Sat, 18 Jan 2025 00:46:19 +0000 (00:46 +0000)
committerGitHub <noreply@github.com>
Sat, 18 Jan 2025 00:46:19 +0000 (16:46 -0800)
Fix possible typo/grammar in glossary.rst

As discussed in https://discuss.python.org/t/typo-in-glossary-entry-for-generator-iterator/77163

Doc/glossary.rst

index f67f3ecad0bc406c274dabe5ab52b3f63e2334b3..33e77c9de211eb0254a51efceedd802184feb5e0 100644 (file)
@@ -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).