[issue1168] complex arithmetic: strange results with "imag"

Gabriel Genellina 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
See http://docs.python.org/ref/numbers.html#l2h-16

(I'd close this as not a bug)

----------
nosy: +gagenellina

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1168>
__________________________________


More information about the Python-bugs-list mailing list