How about "balanced" or "exact" as possible names. The main thing that I think 
is vital is for the docstring(s) to mention that they all exist - the current 
zip (in 3.8) doesn't mention zip_longest so if you don't already know about it.

Or even how about calling any flag/parameter "tail", "spare" or "pad" - (the 
last would be my preferred) if it is an exception type, including 
StopIteration, when any of the input iterators runs out then that exception is 
raised, (StopIteration would give the zip_shortest behaviour), or a value that 
is used to extend the exhausted iterator(s). I think that this would also work 
well for map as well.

Steve Barnes (sorry for top posting - Outlook)

-----Original Message-----
From: MRAB <[email protected]> 
Sent: 04 May 2020 17:55
To: [email protected]
Subject: [Python-ideas] Re: PEP 618: Add Optional Length-Checking To zip

On 2020-05-04 13:17, Dominik Vilsmeier wrote:
> "strict" doesn't say what it's being strict about. That information 
> has to be inferred by the reader.
[snip]

And "equal" doesn't say what it's equal.

What we need is a word that means "same length", much as "shorter" and "longer" 
are about length.

There's "coextensive", but that'll probably get a -1.
_______________________________________________
Python-ideas mailing list -- [email protected] To unsubscribe send an 
email to [email protected] 
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/K3OGDVFTB46BQVGWXU2Q3K2V24MBUQIZ/
Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/CEXXJOSBDTOOP74QH6XHFZJF4QXEURXP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to