[issue13535] Improved two's complement arithmetic support: to_signed() and to_unsigned()

Mark Dickinson report at bugs.python.org
Tue Dec 6 20:35:55 CET 2011


Mark Dickinson <dickinsm at gmail.com> added the comment:

On the feature request itself, I have to say that I'm unconvinced.  Doing x % (2**32) seems good enough to me, in situations where you don't need the bounds checking.  (And it's not clear to me that needing the bounds checks is the more common situation.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13535>
_______________________________________


More information about the Python-bugs-list mailing list