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 quantum
Recipients asvetlov, docs@python, ezio.melotti, mark.dickinson, paddy3118, quantum, serhiy.storchaka, woparry
Date 2021-08-11.12:46:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628685980.22.0.227620882146.issue16580@roundup.psfhosted.org>
In-reply-to
Content
I've rewritten woparry's patch so that it targets the current codebase as well as fixing the issues that Mark mentioned. It appears that the range checks on `to_bytes` have already been added to the documentation so I haven't added those.

Should a separate issue be raised for the behaviour of `int.from_bytes(b'', <byteorder>, signed=True')`? I think it's out of scope for this issue.
History
Date User Action Args
2021-08-11 12:46:20quantumsetrecipients: + quantum, mark.dickinson, paddy3118, ezio.melotti, asvetlov, docs@python, serhiy.storchaka, woparry
2021-08-11 12:46:20quantumsetmessageid: <1628685980.22.0.227620882146.issue16580@roundup.psfhosted.org>
2021-08-11 12:46:20quantumlinkissue16580 messages
2021-08-11 12:46:20quantumcreate