[Python-Dev] any support for a methodcaller HOF?
Eric Nieuwland
eric.nieuwland at xs4all.nl
Sat Feb 4 03:48:18 CET 2006
On 4 feb 2006, at 3:18, Nick Coghlan wrote:
> All I'm suggesting is that a similarly inspired syntax is worth
> considering when it comes to deferred expressions:
>
> def f(x):
> return x*x
>
> => f = (x*x def (x))
It's not the same, as x remains free whereas in g = [x*x for x in seq]
x is bound.
Yours is
f = lambda x: x*x
and it will die by Guido hand...
--eric
More information about the Python-Dev
mailing list