STINNER Victor added the comment:
Oh, there is also infj:
complex(0, float(inf))
infj
complex(infj)
infj
complex(0, float(nan))
nanj
complex(nanj)
nanj
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23229
Mark Dickinson added the comment:
Guido also says:
Also complex(0, math.nan) a value that is printed as nanj and complex(nanj)
parses and returns such a value, so the point could be made that there should
be a constant named complex.nanj.
... and the same comments would apply to infj.
STINNER Victor added the comment:
What about cmath.nanj?
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23229
___
___
New submission from Mark Dickinson:
As pointed out by Guido in issue 23185, the constants `inf` and `nan` should be
added to the cmath module, too.
--
assignee: mark.dickinson
components: Extension Modules
messages: 233919
nosy: mark.dickinson
priority: normal
severity: normal
status: