Lambda going out of fashion

Fredrik Lundh fredrik at pythonware.com
Thu Dec 23 06:18:58 EST 2004


Alex Martelli wrote:

> I think I'll scream, though not quite as loud as for my next seeing:
>
> map(lambda x: f(x), ...
>
> instead of
>
> map(f, ...

note that if you replace "map" with "some function that takes a callable", the difference
between these two constructs may be crucially important.

</F> 






More information about the Python-list mailing list