This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients daniel.urban, docs@python, eric.araujo, ezio.melotti, georg.brandl, gpk-kochanski, rhettinger
Date 2011-02-20.05:32:53
SpamBayes Score 2.6527607e-09
Marked as misclassified No
Message-id <1298179974.42.0.254926794123.issue11248@psf.upfronthosting.co.za>
In-reply-to
Content
I've looked at the docs again and think they're fine.  And in the 3.x docs, the iterator version of zip() specifies its implementation with a pure python equivalent that makes it clear that the iterator is not run to exhaustion.  

Note that zip() has existed since 2.0 and iterators/generators since 2.2.  The docs for them have worked just fine, so I wouldn't worry too much about their being a "trap for 99% of programmers who aren't implementers."

GPK, I can see that you're wound-up about this, but you seem to have a profound misunderstanding about iterators/generators and have incorrectly assumed an implied contract for consumer functions to completely consume their inputs.  Sorry, but I'm going to close this one.  For further discussion, I recommend the python tutor mailing list.
History
Date User Action Args
2011-02-20 05:32:54rhettingersetrecipients: + rhettinger, georg.brandl, ezio.melotti, eric.araujo, daniel.urban, docs@python, gpk-kochanski
2011-02-20 05:32:54rhettingersetmessageid: <1298179974.42.0.254926794123.issue11248@psf.upfronthosting.co.za>
2011-02-20 05:32:53rhettingerlinkissue11248 messages
2011-02-20 05:32:53rhettingercreate