Anonymus functions revisited : tuple actions

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Sat Mar 26 08:11:07 EST 2005


Ron_Adam wrote:
> On Fri, 25 Mar 2005 18:58:27 +0100, Reinhold Birkenfeld
> <reinhold-birkenfeld-nospam at wolke7.net> wrote:
> 
>>Ron_Adam wrote:
>>
>>> What if you could:
>>> 
>>>     x = lambda{ x, y: x+y}  
>>> Hmm comma creates a problem here. so...
>>
>>>>> from __future__ import braces
>>SyntaxError: not a chance
>>>>>
>>
>>Reinhold ;)
> 
> 
> LOL, :-)
> 
> Is that to discourage people from wanting to use them as block
> designators?

Well, it certainly expresses one basic design principle behind the language.

Together with "import this", I consider this to be the Holy Grail of
Python ;)

Reinhold



More information about the Python-list mailing list