Anders Lorentsen added the comment:

So, am I to understand that the only corner case we should fix is that
>>> (-1).to_bytes(0, 'big', signed=True)
should raise an overflow error (currently it returns  b'') ?

----------
Added file: 
http://bugs.python.org/file43925/int_to_bytes_overflow_cornercase.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

Reply via email to