This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients gvanrossum, mark.dickinson, pitrou, serhiy.storchaka, vstinner
Date 2015-01-13.19:52:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421178723.09.0.764552307197.issue23229@psf.upfronthosting.co.za>
In-reply-to
Content
> This type should exist only at compile time.

But then after doing "x = 5j", "-0.0 + 5j" and "-0.0 + x" would have different values.  Yuck!

> repr() (and str()) should keep zero real part if imaginary part is negative and output period if real part is zero

Sorry, I don't see how this helps.  What do you want the repr of (for example) "complex(-0.0, 5.0)" to be, and why?  What about the cases with 0 in the imaginary part?
History
Date User Action Args
2015-01-13 19:52:03mark.dickinsonsetrecipients: + mark.dickinson, gvanrossum, pitrou, vstinner, serhiy.storchaka
2015-01-13 19:52:03mark.dickinsonsetmessageid: <1421178723.09.0.764552307197.issue23229@psf.upfronthosting.co.za>
2015-01-13 19:52:03mark.dickinsonlinkissue23229 messages
2015-01-13 19:52:02mark.dickinsoncreate