[issue10633] string.format() Unexpected output with numeric '#' prefix and 0 width
Eric Smith
report at bugs.python.org
Mon Dec 6 01:01:11 CET 2010
Eric Smith <eric at trueblade.com> added the comment:
I disagree that your expected output is how it should behave. I believe it's more likely that the user wants the entire field width specified. In addition, compatibility with %-formatting would dictate that we keep the current behavior.
>>> '%#02x' % 10
'0xa'
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10633>
_______________________________________
More information about the Python-bugs-list
mailing list