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 martin.panter
Recipients Phaqui, abarry, lucasem, martin.panter, socketpair
Date 2016-07-28.05:11:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469682685.65.0.838583059329.issue27623@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-07-28 05:11:25martin.pantersetrecipients: + martin.panter, socketpair, abarry, lucasem, Phaqui
2016-07-28 05:11:25martin.pantersetmessageid: <1469682685.65.0.838583059329.issue27623@psf.upfronthosting.co.za>
2016-07-28 05:11:25martin.panterlinkissue27623 messages
2016-07-28 05:11:25martin.pantercreate