Message99468
| Author |
pboddie |
| Recipients |
loewis, pboddie, r.david.murray |
| Date |
2010年02月17日.12:16:35 |
| SpamBayes Score |
1.103056e-05 |
| Marked as misclassified |
No |
| Message-id |
<1266408999.62.0.657656971346.issue7942@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I don't disagree that OverflowError describes what's happening, but the need to convert to an int in the first place is a detail of the machine - you'd have to know that this is a limitation of whatever internal "protocol" CPython implements - not a description of the cause of the error, which is what the old-style message describes quite clearly.
On the subject of whether __len__ should be able to return long integers, GvR seems to like the idea (from the related bug mentioned earlier):
http://bugs.python.org/issue2690#msg70525
I'll take a closer look at the mechanisms for error reporting around this situation later, but my assertion is that the new-style message isn't as helpful as the old-style one. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年02月17日 12:16:39 | pboddie | set | recipients:
+ pboddie, loewis, r.david.murray |
| 2010年02月17日 12:16:39 | pboddie | set | messageid: <1266408999.62.0.657656971346.issue7942@psf.upfronthosting.co.za> |
| 2010年02月17日 12:16:36 | pboddie | link | issue7942 messages |
| 2010年02月17日 12:16:35 | pboddie | create |
|