[Python-Dev] removing nested tuple function parameters

Steven Bethard steven.bethard at gmail.com
Mon Sep 19 19:26:56 CEST 2005


Guido van Rossum wrote:
> Also, I bet many people will be surprised to know that this code doesn't work:
>> add = lambda (x, y): x+y
> print add(1, 2)

What, an example using lambda syntax that's unintuitive? Never! ;-)
STeVe
-- 
You can wordify anything if you just verb it.
 --- Bucky Katt, Get Fuzzy


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /