Alex Hall wrote:
If you use the word 'even' and tell me it has to do with lengths (or any number) I'm going to think of multiples of 2, not equality. On Mon, May 4, 2020 at 3:52 PM jdveiga@gmail.com wrote:
Guido van Rossum wrote: I should really stay out of this (hundreds of messages and still bickering^Wbikeshedding :-), but I personally find strict=True less confusing than equal=True, both for zip() and for map(). If I didn't know what was going on, seeing equal=True would make me wonder about whether equality between the elements might be involved somehow. On Sun, May 3, 2020 at 9:42 PM Christopher Barker pythonchb@gmail.com wrote: On Sun, May 3, 2020 at 6:17 PM Steven D'Aprano steve@pearwood.info wrote: map(func, x, y, strict=True) # ? Admittedly the word "strict" in the context of map would be rather confusing. This a really good argument for "equal" rather than "strict". Sorry, I'm not seeing why this would be confusing for map but not zip. And "equal" might suggest that x and y need to be equal. of course it would be confusing for zip. I and others have been advocating for "equal" over "strict" for a whiie. this is yet another argument. Since I never liked "strict", I'm not sure I can argue why it might be more confusing or map than zip :-) Perhaps "truncate" or even "trunc" is a better keyword than either strict or equal. Not that I'm arguing for a keyword here. But it wouldn't be truncating anything. If we want to be wordy, equal_length would do it -- but I wouldn't want to be that wordy. -CHB Christopher Barker, PhD Python Language Consulting Teaching Scientific Software Development Desktop GUI and Web Development wxPython, numpy, scipy, Cython 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/DK3PG4. .. Code of Conduct: http://python.org/psf/codeofconduct/ --Guido van Rossum (python.org/~guido) Pronouns: he/him **(why is my pronoun here?) http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c. .. What about even as "equal in number or amount"?
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/GLAEXJ... Code of Conduct: http://python.org/psf/codeofconduct/
Ok,`even`is one of those scarce polysemic words in English ;-) Meaning depends on context and message receiver's expectations, of course. But... "add an even mixture of milk and cream" and "the curtain rod and the top of the window should be even" --examples taken from wordreference-- are quite similar to say "zip even iterators". To me, "zip even iterators" is more precise than "zip strict iterators or "zip equal iterators" --since they are no equal, just equal in length. Obviously, my prefer option is `force_equal_length` but... you know... verbose...