Favorite non-python language trick?

Steven D'Aprano steve at REMOVETHIScyber.com.au
Sat Jun 25 21:21:38 EDT 2005


On Sat, 25 Jun 2005 19:23:18 +0000, Mandus wrote:

> Sat, 25 Jun 2005 16:06:57 GMT skrev Lee Harr:
>>>> Higher-order functions like map, filter and reduce. As of Python 3000, 
>>>> they're non-python tricks. Sigh - i guess it's time for me to get to know 
>>>> list comprehensions a bit better.
>>>>
>>
>>
>> Couldnt there just be a "functional" module ?...
>>
>> from functional import map, filter, reduce
> 
> but lambda is grammar, so probably not so easy to import?


"from __future__ import something" can change the compile-time behaviour
of Python, so it is possible.


-- 
Steven.




More information about the Python-list mailing list