[issue40269] Inconsistent complex behavior with (-1j)
Raymond Hettinger
report at bugs.python.org
Sat Apr 18 14:35:11 EDT 2020
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
Since integers don't have signed zeros, the use of integers in the complex repr is a little weird:
>>> (-0-1j) # The unary minus in the repr has no effect.
-1j
>>> (0-1j)
-1j
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40269>
_______________________________________
More information about the Python-bugs-list
mailing list