something about split()???

Mark Lawrence breamoreboy at yahoo.co.uk
Wed Aug 22 03:30:30 EDT 2012


On 22/08/2012 06:46, Terry Reedy wrote:
> On 8/21/2012 11:43 PM, mingqiang hu wrote:
>> why filter is bad when use lambda ?
>
> Inefficient, not 'bad'. Because the equivalent comprehension or
> generator expression does not require a function call.
>

A case of premature optimisation? :)

-- 
Cheers.

Mark Lawrence.




More information about the Python-list mailing list