Message177725
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:54 | LRN | set | recipients:
+ LRN |
2012-12-19 05:42:52 | LRN | set | messageid: <1355895772.21.0.287047855702.issue16722@psf.upfronthosting.co.za> |
2012-12-19 05:42:50 | LRN | link | issue16722 messages |
2012-12-19 05:42:47 | LRN | create | |
|