Message26218
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
|
|
Date |
User |
Action |
Args |
2007-08-23 14:34:19 | admin | link | issue1283289 messages |
2007-08-23 14:34:19 | admin | create | |
|