On Thu, Jun 18, 2020 at 2:36 PM Eric Fahlgren <ericfahlg...@gmail.com>
wrote:

> We've implemented the new zip in our sitecustomize.py, and think the
> keyword makes it easier.  I've instructed our development staff to examine
> all use of zip as they come across them and add either "strict=True" or
> "strict=False" when they've determined which is appropriate.  Any zip calls
> without an explicit "strict=" will be deemed "unknown" and requiring
> further investigation.
>

That's actually a really nice validation of the choice to use a keyword --
none of the other options debated (which were all variations on "give the
alternate behavior a different name") would offer the opportunity to state
"I've thought about it and it's definitely okay that the iterables have
different lengths at this call site." Sure, in most places this would just
look redundant, but in large corporate code bases that's exactly the kind
of thing that people like to do.

-- 
--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-change-the-world/>
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/XKMPPQLPICJFM6IZYQTABMX6G2QGHIWM/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to