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

Mark Dickinson report at bugs.python.org
Fri Jan 2 17:08:19 CET 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

cdavid, in your application, how hard is it to work around the problem by 
simply printing and parsing pairs of floats rather than complex numbers?

E.g.,

<get real part and imaginary part from string> 
z = complex(float(real_part), float(imag_part))

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2121>
_______________________________________


More information about the Python-bugs-list mailing list