Message288205
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. |
|
Date |
User |
Action |
Args |
2017-02-20 14:04:28 | arigo | set | recipients:
+ arigo, mark.dickinson, steven.daprano, serhiy.storchaka, Tom Krauss |
2017-02-20 14:04:28 | arigo | set | messageid: <1487599468.77.0.789296199765.issue29602@psf.upfronthosting.co.za> |
2017-02-20 14:04:28 | arigo | link | issue29602 messages |
2017-02-20 14:04:28 | arigo | create | |
|