[issue31270] Simplify documentation of itertools.zip_longest

2017-09-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 3147b0422cbeb98065666ccf95ab6845ac800fd4 by Raymond Hettinger in branch 'master': bpo-31270: Modification of Pr 3200 (#3427) https://github.com/python/cpython/commit/3147b0422cbeb98065666ccf95ab6845ac800fd4 -- ___

[issue31270] Simplify documentation of itertools.zip_longest

2017-09-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31270] Simplify documentation of itertools.zip_longest

2017-09-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- pull_requests: +3424 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[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 i

[issue31270] Simplify documentation of itertools.zip_longest

2017-08-24 Thread R. David Murray
R. David Murray added the comment: Thanks for wanting to improve the documentation. Raymond will address this definitively, but unless I'm mistaken part of the purpose of the examples is to show how the various itertools can be used. If that is true, then in the context of the overall itertoo

[issue31270] Simplify documentation of itertools.zip_longest

2017-08-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[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('ABCD', 'xy'

[issue31270] Simplify documentation of itertools.zip_longest

2017-08-24 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> patch review versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[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 implementation is very c

[issue31270] Simplify documentation of itertools.zip_longest

2017-08-24 Thread Raphael Michel
Changes by Raphael Michel : -- pull_requests: +3239 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai