Dominik Vilsmeier writes:

 > Or simply "samelength".

If we're going to do this to the builtin (I'm still -1 on changing the
builtin FWIW), I'm persuaded by Chris Barkley's (somewhat different)
argument that we may as well combine all the functionality in the
builtin.  How about

zip(*iterables, length="shortest")     # "shortest" is default
zip(*iterables, length="longest", fill=None)    # None is default
zip(*iterables, length="checksame")    # or just "same" or "checkequal" etc

As the odd suggested value "checksame" shows, I see these semantics as
not exactly congruent.  But I think the argument name "length"
addresses the concern about the ambiguity of various argument names.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/KQM5RK5LGXUFAMFVFYEGMYQBQXXSLG6X/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to