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

2014-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 35302cc4fc93 by Yury Selivanov in branch 'default': inspect: Fix getcallargs() to fail correctly if more than 3 args are missing. http://hg.python.org/cpython/rev/35302cc4fc93 New changeset 9f06cbb7962b by Yury Selivanov in branch '3.4': inspect:

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

2014-03-27 Thread Yury Selivanov
Yury Selivanov added the comment: Fixed for 3.4.1 and 3.5. Thanks for the contribution! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20817 ___

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

2014-03-01 Thread Jeremiah Lowin
New submission from Jeremiah Lowin: If inspect.getcallargs() is called on a function and three or more arguments are missing, an IndexError is raised instead of the expected TypeError. This bug is present in Python 3.3 and 3.4.0 rc1 (5e05d7d3db9c). However, it worked as expected in Python

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

2014-03-01 Thread Jeremiah Lowin
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

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

2014-03-01 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- assignee: - yselivanov nosy: +larry, ncoghlan, yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20817 ___