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

Raymond Hettinger report at bugs.python.org
Tue Jan 6 17:35:43 CET 2009


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

Mark, I'm somewhat uncomfortable with your proposal also.  It changes
what the parser will accept and the potential benefits are almost nil. 
Also, putting NaNs and Infs in complex numbers is probably not something
that should be pursued.  I see no utility in pairs like (NaN, 3.0) or
(-2.0, Inf).  The whole request is use case challenged.  AFAICT, the
current implementation suffice for real cases and there is no compelling
need to rearrange and redesign this code.

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


More information about the Python-bugs-list mailing list