[issue5749] Allow bin() to have an optional "Total Bits" argument.

R. David Murray report at bugs.python.org
Tue Apr 14 03:28:22 CEST 2009


R. David Murray <rdmurray at bitdance.com> added the comment:

A better (more flexible) way already exists (as of 2.6) to accomplish
your goal:

>>> "0b{0:08b}".format(127)
'0b01111111'

----------
nosy: +r.david.murray
resolution:  -> rejected
stage:  -> committed/rejected
status: open -> closed

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


More information about the Python-bugs-list mailing list