[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

Lisa Roach report at bugs.python.org
Mon Jun 12 23:25:21 EDT 2017


Lisa Roach added the comment:

I can't see the drawback of being able to format two's complement easily, isn't it more common to represent negative binary numbers in two's complement form? I find the - sign a little odd myself.

I agree with the idea of using "!" with the precision to represent width.

----------

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


More information about the Python-bugs-list mailing list