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).