all() is slow?

John Posner jjposner at optimum.net
Tue Nov 8 17:51:27 EST 2011


On 2:59 PM, Chris Angelico wrote:

>>> So really, it's not "all() is slow" but "function calls are slow".
>>> Maybe it'd be worthwhile making an all-factory:
>> PLEASE say you're joking. If I saw code like that on any of our project,
>> this would definitely qualify for a DailyWTF.
> For the benefit of anyone who was actually in doubt: YES, I was
> joking. Do *not* put code like this into any production project.

Because an all-factory would produce code smell? :-)




More information about the Python-list mailing list