Message228527
Thanks for the review, David.
> The standard error message for this case is:
>
> xxx() got an unexpected keyword argument 'foo'
I found two similar messages in the codebase:
* In Modules/itertoolsmodule.c:
PyErr_SetString(PyExc_TypeError,
"zip_longest() got an unexpected keyword argument");
* In Python/ceval.c:
PyErr_Format(PyExc_TypeError,
"%U() got an unexpected "
"keyword argument '%S'",
co->co_name,
keyword);
But, in ImportError case it can take more than one keyword arguments:
ImportError(spam="SPAM", eggs=True)
What error message should be printed for the above case? |
|
Date |
User |
Action |
Args |
2014-10-05 02:24:00 | berker.peksag | set | recipients:
+ berker.peksag, brett.cannon, r.david.murray, eric.snow |
2014-10-05 02:24:00 | berker.peksag | set | messageid: <1412475840.31.0.429242769517.issue21578@psf.upfronthosting.co.za> |
2014-10-05 02:24:00 | berker.peksag | link | issue21578 messages |
2014-10-05 02:23:59 | berker.peksag | create | |
|