[issue24205] signature.bind error messages are sub-optimal

Martin Panter report at bugs.python.org
Tue May 19 01:53:15 CEST 2015


Martin Panter added the comment:

I think the patch is okay. Just beware that next(iter(kwargs)) can return different names if there is more than one unexpected argument, so the error message could vary. But it looks like the test cases are only when there is exactly one extra argument, so no problem.

----------

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


More information about the Python-bugs-list mailing list