[issue13535] Improved two's complement arithmetic support: to_signed() and to_unsigned()
Antoine Pitrou
report at bugs.python.org
Tue Dec 6 20:39:21 CET 2011
Antoine Pitrou <pitrou at free.fr> 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.
Ah, I didn't know that modulo worked for that. Nice trick.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13535>
_______________________________________
More information about the Python-bugs-list
mailing list