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 <1355895772.21.0.287047855702.issue16722@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2012-12-19 05:42:54LRNsetrecipients: + LRN
2012-12-19 05:42:52LRNsetmessageid: <1355895772.21.0.287047855702.issue16722@psf.upfronthosting.co.za>
2012-12-19 05:42:50LRNlinkissue16722 messages
2012-12-19 05:42:47LRNcreate