We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90758c0 commit 80fde9dCopy full SHA for 80fde9d
1 file changed
Doc/glossary.rst
@@ -641,12 +641,10 @@ Glossary
641
.. index:: single: generator
642
643
generator
644
- An :term:`iterator` object created by a :term:`generator function` or
645
- a :term:`generator expression`.
646
-
647
- Usually refers to a generator iterator object, but in some contexts
648
- may refer to a :term:`generator function`. In cases where the
649
- intended meaning isn't clear, using the full terms avoids ambiguity.
+ Informally used to mean either a :term:`generator function` or a
+ :term:`generator iterator`, depending on context. The formal terms
+ :term:`generator function` and :term:`generator iterator` are uncommon
+ in practice; "generator" alone is almost always sufficient.
650
651
.. index:: single: generator function
652
0 commit comments