[issue6474] Inconsistent TypeError message on function calls with wrong number of arguments
Oleg Oshmyan
report at bugs.python.org
Tue Jun 7 19:29:34 CEST 2011
Oleg Oshmyan <chortos at inbox.lv> added the comment:
Unfortunately it was not.
>>> Extension('myext', define_macros=[])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: __init__() takes from 3 to 17 positional arguments but 3 were given
The issue is that the message tries to differentiate between positional and keyword arguments, while it really should differentiate between required and optional ones.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6474>
_______________________________________
More information about the Python-bugs-list
mailing list