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.10306e-05
Marked as misclassified No
Message-id <>
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):

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.
Date User Action Args
2010-02-17 12:16:39pboddiesetrecipients: + pboddie, loewis, r.david.murray
2010-02-17 12:16:39pboddiesetmessageid: <>
2010-02-17 12:16:36pboddielinkissue7942 messages
2010-02-17 12:16:35pboddiecreate