[issue35546] String formatting produces incorrect result with left-aligned zero-padded format

Matthew Barnett report at bugs.python.org
Thu Dec 20 13:11:09 EST 2018


Matthew Barnett <python at mrabarnett.plus.com> added the comment:

A similar issue exists with centring:

>>> format(42, '^020')
'00000000042000000000'

----------
nosy: +mrabarnett

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


More information about the Python-bugs-list mailing list