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 LRN
Recipients LRN
Date 2012-12-19.05:42:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
If a class implements both __index__() and __bytes__(), the built-in bytes() constructor uses __index__() in place of __bytes__(), including the assumption that __index__() returns a bytes object.

Attaching a simple example (leads to overflow when big integer is casted to bytes).
Date User Action Args
2012-12-19 05:42:54LRNsetrecipients: + LRN
2012-12-19 05:42:52LRNsetmessageid: <>
2012-12-19 05:42:50LRNlinkissue16722 messages
2012-12-19 05:42:47LRNcreate