[issue31270] Simplify documentation of itertools.zip_longest

2017-08-25 Thread Raphael Michel
Raphael Michel added the comment: Well, I could think of a way to still use repeat() here that also is pretty clean except for the fact that it fails if all inputs to zip_longest are repeat() iterators themselves (which would here lead to an empty iterator while it would otherwise lead to an

[issue31270] Simplify documentation of itertools.zip_longest

2017-08-24 Thread Raphael Michel
Raphael Michel added the comment: I just noticed that in my post I accidentally pasted MY implementation twice instead of the old one, sorry for that. Here's the old one for quick comparison: class ZipExhausted(Exception): pass def zip_longest(*args, **kwds): # zip_longest('

[issue31270] Simplify documentation of itertools.zip_longest

2017-08-24 Thread Raphael Michel
New submission from Raphael Michel: The documentation given for itertools.zip_longest contains a "roughly equivalent" pure-python implementation of the function that is intended to help the user understand what zip_longest does on a functional level. However, the given implementati

[issue31270] Simplify documentation of itertools.zip_longest

2017-08-24 Thread Raphael Michel
Changes by Raphael Michel : -- pull_requests: +3239 ___ Python tracker <http://bugs.python.org/issue31270> ___ ___ Python-bugs-list mailing list Unsubscribe: