On Fri, May 15, 2020 at 12:55 PM Eric V. Smith <eric@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.