Lambda going out of fashion

Fredrik Lundh fredrik at pythonware.com
Thu Dec 23 12:18:58 CET 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