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.49249724
Marked as misclassified No
Message-id <1197379851.58.0.0476028374566.issue1588@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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.
History
Date User Action Args
2007-12-11 13:30:51marksetspambayes_score: 0.492497 -> 0.49249724
recipients: + mark
2007-12-11 13:30:51marksetspambayes_score: 0.492497 -> 0.492497
messageid: <1197379851.58.0.0476028374566.issue1588@psf.upfronthosting.co.za>
2007-12-11 13:30:51marklinkissue1588 messages
2007-12-11 13:30:51markcreate