Message171357
| Author |
chris.jerdonek |
| Recipients |
chris.jerdonek, ezio.melotti |
| Date |
2012年09月26日.19:41:00 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1348688461.13.0.427927679227.issue16055@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The following error text is incorrect in at least one way:
>>> int(base=1000, x='1')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: int() arg 2 must be >= 2 and <= 36
The *base* argument can also be 0. Secondly, the text should probably say "base arg" instead of "arg 2" since 1000 is not in position 2.
The 2.7 code does not have the second issue:
>>> int(base=1000, x='1')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: int() base must be >= 2 and <= 36 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年09月26日 19:41:01 | chris.jerdonek | set | recipients:
+ chris.jerdonek, ezio.melotti |
| 2012年09月26日 19:41:01 | chris.jerdonek | set | messageid: <1348688461.13.0.427927679227.issue16055@psf.upfronthosting.co.za> |
| 2012年09月26日 19:41:00 | chris.jerdonek | link | issue16055 messages |
| 2012年09月26日 19:41:00 | chris.jerdonek | create |
|