Mark Dickinson <dicki...@gmail.com> added the comment: The 'self.bit_length() >= bits' condition for to_unsigned doesn't look right to me.
E.g., if bits == 32, I'd expect the acceptable range of values to be range(-2**31, 2**31)---i.e., including -2**31, but excluding 2**31. But the ValueError for 'self.bit_length() >= 32' means that -2**31 is excluded. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13535> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com