Anonymus functions revisited : tuple actions
Ron_Adam
radam2 at tampabay.rr.com
Fri Mar 25 22:15:57 EST 2005
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?
More information about the Python-list
mailing list