[Python-Dev] Recommend accepting PEP 312 -- Simple Implicit Lambda
Reinhold Birkenfeld
reinhold-birkenfeld-nospam at wolke7.net
Sun Jun 19 14:44:32 CEST 2005
Kay Schluehr wrote:
> Reduction provides often the advantage to make expressions/statements
> scriptable what they are not in Python. Python is strong in scripting
> classes/objects ( a big plus of the language ) but you can't simply use
> the language to prove that
>
> lambda x,y: x+y*y
> lambda x,y: y**2+x
>
> are essentialy the same functions with different implementations [1].
Except that they are not. Think of __pow__, think of __add__ and __radd__.
Reinhold
--
Mail address is perfectly valid!
More information about the Python-Dev
mailing list