This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark
Recipients mark
Date 2007-12-11.13:30:50
SpamBayes Score 0.492497
Marked as misclassified No
Message-id <>
>>> x = complex(1, 2/3)
>>> "{0} {0:.5}".format(x)
'(1+0.666666666667j) (1+0.'

The complex number is being formatted as if it were a string and simply
truncated to 5 characters. I would expect each part of the complex
number to be formatted according to the format specifier, i.e., in the
case of :.5 to both have 5 digits after the decimal point.
Date User Action Args
2007-12-11 13:30:51marksetspambayes_score: 0.492497 -> 0.492497
recipients: + mark
2007-12-11 13:30:51marksetspambayes_score: 0.492497 -> 0.492497
messageid: <>
2007-12-11 13:30:51marklinkissue1588 messages
2007-12-11 13:30:51markcreate