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 <python@mrabarnett.plus.com> Sent: 04 May 2020 17:55 To: python-ideas@python.org 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 -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@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/K3OGDV... Code of Conduct: http://python.org/psf/codeofconduct/