[issue23229] add inf, nan, infj, nanj to cmath module

Mark Dickinson report at bugs.python.org
Tue Jan 13 11:21:03 CET 2015


Mark Dickinson added the comment:

> May be complex equivalents of all functions should be added for the same reasons?

(1) This is off-topic for this issue; please open a separate one.

(2) Many of those functions simply don't make sense for complex numbers (for example floor, degrees, etc.), or it's not obvious how to extend them.  For those that do make sense (erf, for example), implementing and testing a library-quality version would take a lot of time and effort, and no-one would be interested in the result.  It's not worth it.

----------

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


More information about the Python-bugs-list mailing list