[issue1588] str.format() wrongly formats complex() numbers (Py30a2)

Eric Smith report at bugs.python.org
Sat May 2 21:33:23 CEST 2009


Eric Smith <eric at trueblade.com> added the comment:

Is this suggestion for all types, or just complex? Because float has the
same issue.

>>> format(pi, '')
'3.14159265359'
[38243 refs]
>>> format(pi, '>')
'3.14159'

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1588>
_______________________________________


More information about the Python-bugs-list mailing list