[issue1588] str.format() wrongly formats complex() numbers (Py30a2)
Eric Smith
report at bugs.python.org
Mon Apr 27 18:58:31 CEST 2009
Eric Smith <eric at trueblade.com> added the comment:
> I don't see any problem with dealing with width, alignment
> and padding with a user-specified fill character; I think we
> should keep these if possible. It's just zero padding where
> it's not clear what should happen.
You're correct. It's just zero padding that would be disabled.
> For the bits that are disabled (e.g., zero padding), should
> there be a ValueError raised, or do those bits just get
> silently ignored?
I think a ValueError would be best. That way if we decide to give it some
meaning in the future, we know it won't change any working code.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1588>
_______________________________________
More information about the Python-bugs-list
mailing list