[issue8177] Incoherent error with keyword argument follow by unpacking argument lists

Benjamin Peterson report at bugs.python.org
Sun Mar 21 22:30:57 CET 2010


Benjamin Peterson <benjamin at python.org> added the comment:

It's a weird error even it reverse order:

>>> def f(foo, *args):
...     pass
...
>>> f(*(1, 2, 3), foo=4)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: f() got multiple values for keyword argument 'foo'

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8177>
_______________________________________


More information about the Python-bugs-list mailing list