[issue1168] complex arithmetic: strange results with "imag"
report at bugs.python.org
Sun Sep 16 10:13:23 CEST 2007
Gabriel Genellina added the comment:
Note that there are no complex literals in Python, only imaginary
literals. 1-4j is an expression, not a literal.
So 1-4j.imag means 1-(4j.imag) = 1-4 = -3
(I'd close this as not a bug)
Tracker <report at bugs.python.org>
More information about the Python-bugs-list