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

2009-05-02 Thread Mark Dickinson
Mark Dickinson added the comment: I'm not going to pursue this further; try as I might, I really can't make this anything more than just a personal preference. It doesn't solve any genuine problem. Closing. -- resolution: -> rejected status: open -> closed _

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

2009-04-28 Thread Mark Dickinson
Mark Dickinson 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 ag

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

2009-04-27 Thread Mark Dickinson
Mark Dickinson added the comment: > This should probably be discussed somewhat that all the numpy/numeric > folks can see it. Good point; I'll post something to the numpy/scipy mailing list and see if I can get some reactions. > Also note that any changes to representations tend to break peop

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

2009-04-27 Thread Raymond Hettinger
Raymond Hettinger 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 partic

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

2009-04-27 Thread Mark Dickinson
New submission from Mark Dickinson : In all current versions of Python, the str or repr of a float always includes *either* an exponent, or a decimal point and at least one digit after the decimal point. I propose making the str or repr of a complex number behave in the same way. That is, in