On 2/24/2010 9:07 AM, Steve Holden wrote:
John Posner wrote:

Note that the Py2.6.4 documentation is inconsistent. AFAICT, it conforms
to Terry's definitions above in most places. But the Glossary says:

  generator
     A function which returns an iterator.<... more ...>

  generator expression
     An expression that returns a generator.<... more ...>

The additional verbiage in these definitions mitigates the damage, but I
think the first entry should be headlined *generator function* instead
of *generator*. And the Glossary should include Terry's additional entry
[ as amended by me :-) ]:

  generator
     An iterator produced by a generator function or a generator
     expression.

-John

+1. Can someone submit a documentation patch, please?


Will do.  -John
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to