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. -- Terry Jan Reedy