6 May
2020
6 May
'20
12:05 p.m.
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.