Anders Lorentsen added the comment: I updated my patch to account for that second corner case. But ideally, shouldn't it rather be accounted for in the function that does the actual conversion, that is, in _PyLong_AsByteArray?
---------- Added file: http://bugs.python.org/file43942/int_to_bytes_overflow_cornercase2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27623> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com