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. -- http://mail.python.org/mailman/listinfo/python-list