[issue5968] Generator expression bug?
Terry J. Reedy
report at bugs.python.org
Fri May 8 21:11:36 CEST 2009
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Questions and discussions like this should be directed to the
python-list, mirrored on newsgroups comp.lang.python and
gmane.comp.python.general (or possibly other forums).
I will say this much but *only* this much here:
1. Generators are iterators; by definition, iterator.__init__ returns
itself. Nearly all iterators are single use.
2. Generator functions and their abbreviated form, generator
expressions, create generators. To re-iterate, re-call the generator
function or re-execute the generator expression.
It is possible that discussion elsewhere would generator specific doc
improvement suggestions that could be submitted in a new issue.
status: open -> closed
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list