[issue23229] add inf, nan, infj, nanj to cmath module
Serhiy Storchaka
report at bugs.python.org
Tue Jan 13 21:28:23 CET 2015
Serhiy Storchaka added the comment:
> Sorry, I don't see how this helps. What do you want the repr of (for example) "complex(-0.0, 5.0)" to be, and why? What about the cases with 0 in the imaginary part?
Ah, it doesn't help in this case. It helps only when the imaginary part is negative.
>>> eval('(-0.0-5j)')
(-0-5j)
>>> eval('(-0-5j)')
-5j
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23229>
_______________________________________
More information about the Python-bugs-list
mailing list