[issue5858] Make complex repr and str more like float repr and str

Mark Dickinson report at bugs.python.org
Tue Apr 28 12:36:36 CEST 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

I'm still flip-flopping on this one.  On the minus side, this change
risks breaking doctests without any enormous gain to show for it.

On the plus side, Eric Smith is currently working on implementing
sensible formatting for complex numbers (issue 1588), and again the
current form of complex formatting is going to cause (minor,
surmountable, but still ugly) difficulties for that implementation
when the empty presentation type is being used (e.g., format(3j, '')
or format(3j, '<20')).

I'll come up with a patch and see how much breaks in core Python.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5858>
_______________________________________


More information about the Python-bugs-list mailing list