[issue20817] inspect.getcallargs() raises the wrong error if 3+ arguments are missing

Jeremiah Lowin report at bugs.python.org
Sat Mar 1 17:38:40 CET 2014


Jeremiah Lowin added the comment:

The bug is caused by a list of names not getting properly expanded when generating the error message. This patch fixes it (simply by adding a * in the appropriate place) and tests that a TypeError, not an IndexError, is raised.

----------
keywords: +patch
Added file: http://bugs.python.org/file34261/issue20817.patch

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


More information about the Python-bugs-list mailing list