Why does the complex.__str__() method on complex numbers add the enclosing
parentheses?
It's unwanted, and it also makes them look like a tuple (other than the
trailing comma).
How can I get rid of it, other than the clunky:
>>> print d(0.80-0.58j)>>> print repr(d)[1:-1]0.80-0.58j
How can I change complex.__str__() ?
Thanks,
Stephen
_________________________________________________________________
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor