[issue2121] complex constructor doesn't accept string with nan and inf

Mark Dickinson report at bugs.python.org
Sat Mar 1 22:38:50 CET 2008


Mark Dickinson added the comment:

Signed zeros cause difficulties with round-tripping, too:

>>> z = complex(-0.0, -0.0); w = complex(repr(z))
>>> z
-0j
>>> w
-0j
>>> z.real
-0.0
>>> w.real
0.0

----------
nosy: +marketdickinson

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


More information about the Python-bugs-list mailing list