Guido van Rossum added the comment: This really is a feature request -- in Python 2.x there is no formatting code for complex numbers at all, and "%.5s" % complex(...) does the same thing.
I agree it would be neat to have control over complex numbers using the same formatting language used for floats; but I note that it's easy enough to do this manually, e.g. >>> "{0.real:.5}+{0.imag:.5}j".format(z) '1+0.66667j' ---------- nosy: +gvanrossum priority: -> low __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1588> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com