Favorite non-python language trick?
ncf
nothingcanfulfill at gmail.com
Thu Jun 30 22:26:40 EDT 2005
Eh, just figured it'd be worth noting...map, filter, and reduce should
be possible with the extended list syntaxes. Well, filter I know is,
but hte others /should/ be possible.
filter(lambda: <<condition>>, <<seq>>)
[some_var for some_var in <<seq>> if <<condition>>]
Honestly, though, I hope they don't drop the map functions and such.
That's one of the stronger functions of the language (IMO).
-Wes
More information about the Python-list
mailing list