21.12.20 10:09, David Mertz пише:
> I sure hope this never happens! It would break millions of working lines
> and kill a common useful pattern.
> 
> ntrue = sum(this == that for this, that in items)

It is too, but the main reason is that the C code parses boolean
parameters as integers (using PyArg_Parse("i") or similar).
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@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/A7URS3JFHUFERQAGAR73BQJUFD7ID5BU/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to