Message269879
I suggest change `bytes` exception message when an iterable containing overflow integers.
Right now, bytes([sys.maxsize+1]) emits ValueError: cannot fit 'int' into an index-sized integer "ValueError: cannot fit 'int' into an index-sized integer". I think actually when use bytes in such a situation we don't care the integer overflows or not, we only care if the integer is in range(0, 256) or not, just like what bytearray([sys.maxsize+1]) does. |
|
Date |
User |
Action |
Args |
2016-07-06 10:38:48 | xiang.zhang | set | recipients:
+ xiang.zhang |
2016-07-06 10:38:48 | xiang.zhang | set | messageid: <1467801528.33.0.514121242609.issue27460@psf.upfronthosting.co.za> |
2016-07-06 10:38:48 | xiang.zhang | link | issue27460 messages |
2016-07-06 10:38:47 | xiang.zhang | create | |
|