Ron Adam <ron_a...@users.sourceforge.net> added the comment:

Why is this surprising?

>>> def foo(c, c=None):
...   pass
... 
  File "<stdin>", line 1
SyntaxError: duplicate argument 'c' in function definition

In the previous examples, it finds the duplicate at run time instead of compile 
time due to not being able to determine the contents of kwargs at compile time. 
 It's just a bug in your code if you do it, and it should raise an exception as 
it does.

----------
nosy: +ron_adam

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10918>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to