Message271499
I agree that the signed conversion cases should be an error.
However the unsigned case would break working code that I have written for bijective numeration. See _bytes_to_int() and _int_to_bytes() in Issue 20132, inc-codecs.diff, for example. Since non-zero unsigned conversions work by converting
N bytes <-> 0 <= value < 2^N
For N = 0, there is only one possible value, 0. |
|
Date |
User |
Action |
Args |
2016-07-28 05:11:25 | martin.panter | set | recipients:
+ martin.panter, socketpair, abarry, lucasem, Phaqui |
2016-07-28 05:11:25 | martin.panter | set | messageid: <1469682685.65.0.838583059329.issue27623@psf.upfronthosting.co.za> |
2016-07-28 05:11:25 | martin.panter | link | issue27623 messages |
2016-07-28 05:11:25 | martin.panter | create | |
|