This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author japierro
Recipients
Date 2005-09-06.19:12:46
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Python 2.3.3 on Windows XP

If the user supplies one valid and one invalid keyword to 
a function that defines two required keyword arguments, 
PyArg_ParseTupleAndKeywords will raise this 
exception:

TypeError: function takes exactly 2 arguments (1 given)

If, in getargs.c, vgetargskeywords, the check 
for "extraneous keywords" were done near the top of the 
function, a more meaningful exception would be thrown:

TypeError: 'bad' is an invalid keyword argument for this 
function
History
Date User Action Args
2007-08-23 14:34:19adminlinkissue1283289 messages
2007-08-23 14:34:19admincreate