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 arigo
Recipients Tom Krauss, arigo, mark.dickinson, serhiy.storchaka, steven.daprano
Date 2017-02-20.14:04:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1487599468.77.0.789296199765.issue29602@psf.upfronthosting.co.za>
In-reply-to
Content
CPython 2.7 and 3.5 have issues with the sign of zeroes even without any custom class:

>>> -(0j)       # this is -(0+0j)
(-0-0j)
>>> (-0-0j)     # but this equals to the difference between 0 and 0+0j
0j
>>> (-0.0-0j)   # this is the difference between -0.0 and 0+0j
(-0+0j)
>>> -0j
-0j             # <- on CPython 2.7
(-0-0j)         # <- on CPython 3.5

It's unclear if the signs of the two potential zeroes in a complex number have a meaning, but the C standard considers these cases for all functions in the complex number's header.
History
Date User Action Args
2017-02-20 14:04:28arigosetrecipients: + arigo, mark.dickinson, steven.daprano, serhiy.storchaka, Tom Krauss
2017-02-20 14:04:28arigosetmessageid: <1487599468.77.0.789296199765.issue29602@psf.upfronthosting.co.za>
2017-02-20 14:04:28arigolinkissue29602 messages
2017-02-20 14:04:28arigocreate