[issue5858] Make complex repr and str more like float repr and str
Raymond Hettinger
report at bugs.python.org
Mon Apr 27 22:57:26 CEST 2009
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
This should probably be discussed somewhat that all the numpy/numeric
folks can see it (since they likely comprise the largest group of users
of complex numbers).
Also note that any changes to representations tend to break peoples
doctests. Those are particularly susceptible to this change because
of people using whole numbers for hand entered test inputs.
FWIW, Octave starts with 2+4j style formatting but if either component
has a decimal, then both switch 2.1000 + 4.000j.
My own tastes prefer the current form, but I would probably adapt quickly.
----------
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5858>
_______________________________________
More information about the Python-bugs-list
mailing list