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

2010-04-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: As covered in http://docs.python.org/dev/reference/expressions.html#calls, this is how function calls are bound. -- resolution: -> wont fix status: open -> closed ___ Python tracker

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

2010-03-21 Thread Ghislain Hivon
Ghislain Hivon added the comment: The reverse, f(*(1, 2, 3), foo=4), is consistent with f(1,2,3, foo=4) who also gave TypeError: f() got multiple values for keyword argument 'foo' Which is consistent with the tutorial http://docs.python.org/tutorial/controlflow.html#keyword-arguments def par

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

2010-03-21 Thread Benjamin Peterson
Benjamin Peterson 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 "", line 1, in TypeError: f() got multiple values for keyword argument 'foo' -- __

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

2010-03-21 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> benjamin.peterson nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list maili

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

2010-03-19 Thread Ghislain Hivon
New submission from Ghislain Hivon : Take a fonction with a parameter and *args def foo(bar, args*) pass then call it like this myargs = [1, 2, 3, 4, 5] foo(bar=1, *myargs) The call produce this error : TypeError: foo() got multiple values for keyword argument 'bar' Sould the error be more