This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:39pboddiesetrecipients: + pboddie, loewis, r.david.murray
2010-02-17 12:16:39pboddiesetmessageid: <1266408999.62.0.657656971346.issue7942@psf.upfronthosting.co.za>
2010-02-17 12:16:36pboddielinkissue7942 messages
2010-02-17 12:16:35pboddiecreate