[New-bugs-announce] [issue40269] Inconsistent complex behavior with (-1j)

Rushil Udani report at bugs.python.org
Sun Apr 12 20:03:28 EDT 2020


New submission from Rushil Udani <rushil.udani at gmail.com>:

In a Python REPL:

>>> -1j
(-0-1j)
>>> (-1j)
(-0-1j)
>>> 0-1j
-1j
>>> -0-1j
-1j

This is clearly inconsistent behavior! -1j and (-1j) should report as -1j, as the other two do.

----------
components: Interpreter Core
messages: 366276
nosy: rushilu
priority: normal
severity: normal
status: open
title: Inconsistent complex behavior with (-1j)
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40269>
_______________________________________


More information about the New-bugs-announce mailing list