Anonymus functions revisited

Diez B. Roggisch deetsNOSPAM at web.de
Tue Mar 22 08:48:44 EST 2005


> letting tuples-like objects (x,y,z=0) acting as functions on other
> tuples I wonder why this would not be a good starting point of
> rethinking anonymus functions?
> 
> In Georges proposition the action is
> 
>    (x,y,z=0) -> (x,y,z)
> 
> i.e. mapping tuples on other tuples. This is equivalent to
> 
> lambda x,y,z=0:(x,y,z)

As you say for yourself, that's just lambda in disguise. So I guess the same
arguments about the in- or exclusion of lambda apply here. I personally
like lambda, but _can_ live without it.

-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list