[issue2283] lambda *a, **k: a, k # does not work

2008-03-13 Thread Raghuram Devarakonda
Raghuram Devarakonda <[EMAIL PROTECTED]> added the comment: I am closing it as invalid. -- nosy: +draghuram resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

[issue2283] lambda *a, **k: a, k # does not work

2008-03-13 Thread Mark Summerfield
Mark Summerfield <[EMAIL PROTECTED]> added the comment: On 2008-03-13, Imri Goldberg wrote: > Imri Goldberg <[EMAIL PROTECTED]> added the comment: > > This is not a bug, just missing parenthesis. > > >>> lambda x: x,x > > Traceback (most recent call last): > File "", line 1, in > NameError: na

[issue2283] lambda *a, **k: a, k # does not work

2008-03-13 Thread Imri Goldberg
Imri Goldberg <[EMAIL PROTECTED]> added the comment: This is not a bug, just missing parenthesis. >>> lambda x: x,x Traceback (most recent call last): File "", line 1, in NameError: name 'x' is not defined >>> lambda x: (x,x) at 0x8293e2c> -- nosy: +lorg

[issue2283] lambda *a, **k: a, k # does not work

2008-03-13 Thread Mark Summerfield
Changes by Mark Summerfield <[EMAIL PROTECTED]>: -- type: -> behavior __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsu

[issue2283] lambda *a, **k: a, k # does not work

2008-03-13 Thread Mark Summerfield
New submission from Mark Summerfield <[EMAIL PROTECTED]>: According to the docs lambda can handle the same parameter list as can def. But this does not appear to be the case as the following (both 2.5.1 and 30a3) shows: >>> def f(*a, **kw): return a, kw >>> f(1,2,a=3,b=4) ((1, 2), {'a': 3, 'b':