Message176202
This came up in #16515.
While using PyArg_UnpackTuple to parse the positional arguments in a function that receives both positional and keyword arguments, the error message returned when the number of arguments is incorrect is misleading, e.g.:
>>> max(foo=1)
TypeError: max expected 1 arguments, got 0
This can be fixed by adding "positional" before "arguments" in the error message. The attached patch fixes this and the pluralization of "argument(s)". |
|
Date |
User |
Action |
Args |
2012-11-23 18:03:13 | ezio.melotti | set | recipients:
+ ezio.melotti |
2012-11-23 18:03:13 | ezio.melotti | set | messageid: <1353693793.28.0.492811281384.issue16543@psf.upfronthosting.co.za> |
2012-11-23 18:03:13 | ezio.melotti | link | issue16543 messages |
2012-11-23 18:03:13 | ezio.melotti | create | |
|