New submission from George Sakkis <george.sak...@gmail.com>: The following exception message seems misleading, or at least not obvious:
>>> def f(a,b,c): pass ... >>> f(c=0,a=0) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: f() takes exactly 3 non-keyword arguments (1 given) Why "1 given" ? One could argue for either 0 or 2 given arguments but I fail to see how 1 is a reasonable answer. ---------- components: Interpreter Core messages: 101298 nosy: gsakkis severity: normal status: open title: Misleading reported number of given arguments on function call TypeError type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8174> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com