Martin Panter added the comment: I’m not familiar with the implementation, but it does seem like this should be fixed within _PyLong_AsByteArray().
Also, what about int.from_bytes(b"", ..., signed=True)? There are existing tests for this case, but it seems like it should be an error, rather than returning zero. ---------- _______________________________________ 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