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

Mark Summerfield report at bugs.python.org
Thu Mar 13 12:47:49 CET 2008


Mark Summerfield <mark at qtrac.eu> added the comment:

On 2008-03-13, Imri Goldberg wrote:
> Imri Goldberg <lorgandon at gmail.com> added the comment:
>
> This is not a bug, just missing parenthesis.
>
> >>> lambda x: x,x
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> NameError: name 'x' is not defined
>
> >>> lambda x: (x,x)
>
> <function <lambda> at 0x8293e2c>

Yes, sorry.

(But I don't seem to have the ability to make the bug resolved or
deleted.)

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2283>
__________________________________


More information about the Python-bugs-list mailing list