[issue1588] str.format() wrongly formats complex() numbers (Py30a2)
Eric Smith
report at bugs.python.org
Tue Apr 28 12:34:10 CEST 2009
Eric Smith <eric at trueblade.com> added the comment:
Mark Dickinson wrote:
>> Although I guess if we wanted to, we could say that the empty
>> presentation type is equivalent to 'g', but gives you parens.
>
> This works for me.
Me, too.
> [about suppressing real zeros...]
>> Again, we could say that the empty presentation type is
>> different in this regard.
>
> Makes sense. Does treating the empty presentation type as special this
> way add much extra complication to the implementation?
No. I'm basically finished with it. Before I check it in, I'll attach a
patch (against trunk) so you can look at how it works.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1588>
_______________________________________
More information about the Python-bugs-list
mailing list