[Python-ideas] Allow filter(items)

Stephen J. Turnbull stephen at xemacs.org
Wed Aug 7 14:14:06 CEST 2013


Serhiy Storchaka writes:

 > The default predicate is not "bool". The default is identity function 
 > (lambda x: x).

IIUC correctly, the intent is "bool", it just happens that it's more
efficient to spell it "lambda x: x" when you don't actually need a
Boolean value.





More information about the Python-ideas mailing list