[issue22544] Inconsistent cmath.log behaviour
Per Brodtkorb
report at bugs.python.org
Sat Apr 25 17:13:08 CEST 2015
Per Brodtkorb added the comment:
This is not only a problem for division. It also applies to multiplication as exemplified here:
>>> complex(0,inf)+1 # expect 1 + infj
Out[16]: (1+infj)
>>> (complex(0,inf)+1)*1 # expect 1 + infj
Out[17]: (nan+infj)
>>> complex(inf, 0) + 1j # expect inf + 1j
Out[18]: (inf+1j)
>>> (complex(inf, 0)+1j)*1 # expect inf + 1j
Out[19]: (inf, nanj)
----------
nosy: +pbrod
versions: +Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22544>
_______________________________________
More information about the Python-bugs-list
mailing list