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 alexhsamuel, antocuni, benjamin.peterson, mark.dickinson, meador.inge, nascheme, r.david.murray
Date 2012-10-18.12:04:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350561841.76.0.25737594457.issue9011@psf.upfronthosting.co.za>
In-reply-to
Content
No, that's expected behaviour.

1j is complex(0.0, 1.0)
-1j is complex(-0.0, -1.0)

so -1j.real is -0.0.  There's not really any other sensible way to handle this.

The complex-from-string constructor, on the other hand, is more careful about interpreting signs.
History
Date User Action Args
2012-10-18 12:04:01mark.dickinsonsetrecipients: + mark.dickinson, nascheme, benjamin.peterson, alexhsamuel, r.david.murray, meador.inge, antocuni
2012-10-18 12:04:01mark.dickinsonsetmessageid: <1350561841.76.0.25737594457.issue9011@psf.upfronthosting.co.za>
2012-10-18 12:04:01mark.dickinsonlinkissue9011 messages
2012-10-18 12:04:01mark.dickinsoncreate