Brandt Bucher <brandtbuc...@gmail.com> added the comment:

Slight edit: if the shortest iterator is "first", one additional item will have 
to be drawn from the next non-exhausted iterator. I missed that, initially.

> It would be better to implement it as a separate function.

I disagree. It's not intrusive here; I think the handful of new lines this 
needs to fit into the existing zip implementation (which already handles most 
of this logic) is more maintainable than a whole new object/function living 
somewhere else.

> Also you can just get a ready implementation from more-tertools.

I've found that there are several places where our own standard library could 
immediately benefit from this change.

----------

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

Reply via email to