[issue33013] Underscore in str.format with x option

Cheryl Sabella report at bugs.python.org
Tue Mar 6 11:06:39 EST 2018


Cheryl Sabella <chekat2 at gmail.com> added the comment:

Thanks guys.

I really thought I tried '{0:_x}'.format(123456789), but I guess I hadn't.  Good to know that using format(123456879, '_x) is better.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33013>
_______________________________________


More information about the Python-bugs-list mailing list