]> granicus.if.org Git - python/commitdiff
#8012: clarification in generator glossary entry.
authorGeorg Brandl <georg@python.org>
Fri, 2 Apr 2010 09:11:49 +0000 (09:11 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 2 Apr 2010 09:11:49 +0000 (09:11 +0000)
Doc/glossary.rst

index 22c13721474daaf3a536cfbf285301166a317801..9b12fcebb9aaabe8ab0f2314030e147528c791cf 100644 (file)
@@ -217,6 +217,8 @@ Glossary
       performs garbage collection via reference counting and a cyclic garbage
       collector that is able to detect and break reference cycles.
 
+      .. index:: single: generator
+
    generator
       A function which returns an iterator.  It looks like a normal function
       except that values are returned to the caller using a :keyword:`yield`
@@ -230,7 +232,7 @@ Glossary
       .. index:: single: generator expression
 
    generator expression
-      An expression that returns a generator.  It looks like a normal expression
+      An expression that returns an iterator.  It looks like a normal expression
       followed by a :keyword:`for` expression defining a loop variable, range,
       and an optional :keyword:`if` expression.  The combined expression
       generates values for an enclosing function::