[issue23185] add inf and nan to math module

Mark Dickinson report at bugs.python.org
Tue Jan 13 10:35:45 CET 2015


Mark Dickinson added the comment:

> Should inf and nan be added to cmath too?

Hmm; probably, yes.  I'll open an issue.

> so the point could be made that there should be a constant named complex.nanj

Yes, I suppose it could (along with infj, of course).  I don't like it much, and I suspect it would get almost no uses.  complex(0, inf) and complex(0, nan) seem like good enough spellings.

----------

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


More information about the Python-bugs-list mailing list