Gautam Chaudhuri <gautam.chaudhuri.1...@gmail.com> added the comment:
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. ---------- nosy: +quantum Added file: https://bugs.python.org/file50210/issue16580.patch _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue16580> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com