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 eric.smith
Recipients ajaksu2, eric.smith, gvanrossum, mark, mark.dickinson
Date 2009-04-28.10:56:10
SpamBayes Score 0.0009312298
Marked as misclassified No
Message-id <1240916181.12.0.0998537147653.issue1588@psf.upfronthosting.co.za>
In-reply-to
Content
See the attached patch. Comments welcome.

I'm not sure I'm doing the right thing with 'g' and appending zeros:
>>> format(3+4j, '.2')
'(3+4j)'
>>> format(3+4j, '.2g')
'3.0+4.0j'
>>> format(3+0j, '.2')
'(3+0j)'
>>> format(3+0j, '.2g')
'3.0+0.0j'
>>> format(1j, '.2')
'(1j)'
>>> format(1j, '.2g')
'0.0+1.0j'
History
Date User Action Args
2009-04-28 10:56:21eric.smithsetrecipients: + eric.smith, gvanrossum, mark.dickinson, ajaksu2, mark
2009-04-28 10:56:21eric.smithsetmessageid: <1240916181.12.0.0998537147653.issue1588@psf.upfronthosting.co.za>
2009-04-28 10:56:19eric.smithlinkissue1588 messages
2009-04-28 10:56:16eric.smithcreate