From: <ast...@gm...> - 2008-04-16 03:24:16
|
Hi all, What's the difference between the following two methods (in Jython or in Python)? Is there a significant speed difference? Or is it just a matter of preference? Method 1: [x for x in someList if x == something] Method 2: filter(lambda x: x == something, somelist) Thanks in advance. |