On Fri, May 15, 2020 at 12:55 PM Eric V. Smith <e...@trueblade.com> wrote:

> Also: The PEP says "At most one additional item may be consumed from one
> of the iterators when compared to normal zip usage." I think this should
> be prefaced with "If ValueError is raised ...". Also, why does it say "at
> most one additional item". How could it ever be less than one?
>

This struck me as strange also.  I mean, the wording can be improved to
clarify "if error."

But more significantly, it seems like it cannot conceivably be true.  If
might be "At most one additional item from EACH of the iterators."

If I do zip_strict(a, b, c, d, e) and "e" is the one that is shorter, how
could any algorithm ever avoid consuming one extra item of a, b, c, and d
each?!


-- 
The dead increasingly dominate and strangle both the living and the
not-yet born.  Vampiric capital and undead corporate persons abuse
the lives and control the thoughts of homo faber. Ideas, once born,
become abortifacients against new conceptions.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/6DAOB62ODEGJZYBTGINWPV5R3U4EDOWX/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to