Raymond Hettinger <rhettin...@users.sourceforge.net> added the comment:

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.

----------
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11248>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to