Message176202
| Author |
ezio.melotti |
| Recipients |
ezio.melotti |
| Date |
2012年11月23日.18:03:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1353693793.28.0.492811281384.issue16543@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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)". |
|
History
|
|---|
| 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 |
|