Eric Smith <e...@trueblade.com> added the comment: 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' ---------- keywords: +patch stage: test needed -> patch review Added file: http://bugs.python.org/file13801/issue-1588-0.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1588> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com