all() is slow?

Tim Chase python.list at tim.thechases.com
Tue Nov 8 18:56:48 EST 2011


On 11/08/2011 04:51 PM, John Posner wrote:
> 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? :-)

Groan...that word-play is the pits! :)

-tkc





More information about the Python-list mailing list