[issue12265] revamp argument errors

Roger Binns report at bugs.python.org
Mon Jun 6 00:05:16 CEST 2011


Roger Binns <python at rogerbinns.com> added the comment:

Is there any reason it doesn't show the function 'prototype' which is by far the most the useful piece of information and is also a form of documentation (plus fairly hard to work out).  Convoluted technospeak is far harder to understand.  Compare:

TypeError: f() takes from 1 to 2 positional arguments but 0 were given

versus:

TypeError: f(a, b=2) takes from 1 to 2 positional arguments but 0 were given

----------
nosy: +rogerbinns

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


More information about the Python-bugs-list mailing list