[docs] [issue11248] Tails of generator get lost under zip()
report at bugs.python.org
Sun Feb 20 06:32:54 CET 2011
Raymond Hettinger <rhettinger at 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 <report at bugs.python.org>
More information about the docs