]> granicus.if.org Git - python/commitdiff
link to extensive generator docs in the reference manual
authorBenjamin Peterson <benjamin@python.org>
Sat, 27 Jun 2009 14:16:23 +0000 (14:16 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 27 Jun 2009 14:16:23 +0000 (14:16 +0000)
Doc/library/stdtypes.rst

index 35c78178ba6135a3212f8a2765336527c0583391..2048e9885e2145c2fb66605c27bed227b79d3879 100644 (file)
@@ -619,10 +619,18 @@ Implementations that do not obey this property are deemed broken.  (This
 constraint was added in Python 2.3; in Python 2.2, various iterators are broken
 according to this rule.)
 
+
+.. _generator-types:
+
+Generator Types
+---------------
+
 Python's :term:`generator`\s provide a convenient way to implement the iterator
 protocol.  If a container object's :meth:`__iter__` method is implemented as a
 generator, it will automatically return an iterator object (technically, a
-generator object) supplying the :meth:`__iter__` and :meth:`next` methods.
+generator object) supplying the :meth:`__iter__` and :meth:`next` methods.  More
+information about generators can be found in :ref:`the documentation for the
+yield expression <yieldexpr>`.
 
 
 .. _typesseq: