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

Serhiy Storchaka report at bugs.python.org
Tue Jan 13 10:59:20 CET 2015


Serhiy Storchaka added the comment:

There are other names which exist only in math, but not in cmath.

>>> sorted(set(dir(math)) - set(dir(cmath)))
['atan2', 'ceil', 'copysign', 'degrees', 'erf', 'erfc', 'expm1', 'fabs', 'factorial', 'floor', 'fmod', 'frexp', 'fsum', 'gamma', 'hypot', 'inf', 'ldexp', 'lgamma', 'log1p', 'log2', 'modf', 'nan', 'pow', 'radians', 'trunc']

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

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list