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

Imri Goldberg report at bugs.python.org
Thu Mar 13 12:18:37 CET 2008


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>

----------
nosy: +lorg

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


More information about the Python-bugs-list mailing list