[issue6871] decimal.py: more format issues
Eric Smith
report at bugs.python.org
Mon Sep 14 01:29:57 CEST 2009
Eric Smith <eric at trueblade.com> added the comment:
The '0' fill character is forcing '=' alignment (per the PEP). This
looks like a bug to me, since it should use the specified alignment.
This is not a float-only problem, it applies to the other built-in types
as well:
>>> format(2, '0<20')
'00000000000000000002'
>>> format(2, '1<20')
'21111111111111111111'
There are too many distinct issues combined here, I'll create a new
issue just for this bug.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6871>
_______________________________________
More information about the Python-bugs-list
mailing list