Message176034
| Author |
chris.jerdonek |
| Recipients |
chris.jerdonek |
| Date |
2012年11月20日.22:36:56 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1353451017.11.0.598123114389.issue16515@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The below should probably say something along the lines of "max expected 1 positional arguments" (since the foo value is an argument):
>>> max(foo=1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: max expected 1 arguments, got 0
I imagine this affects other functions, but I haven't looked into which ones.
Here is an example of another built-in function that provides a better message:
>>> sorted(foo=1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Required argument 'iterable' (pos 1) not found |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年11月20日 22:36:57 | chris.jerdonek | set | recipients:
+ chris.jerdonek |
| 2012年11月20日 22:36:57 | chris.jerdonek | set | messageid: <1353451017.11.0.598123114389.issue16515@psf.upfronthosting.co.za> |
| 2012年11月20日 22:36:57 | chris.jerdonek | link | issue16515 messages |
| 2012年11月20日 22:36:56 | chris.jerdonek | create |
|