[issue23229] add inf and nan to cmath module

2015-01-13 Thread STINNER Victor
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

[issue23229] add inf and nan to cmath module

2015-01-13 Thread Mark Dickinson
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.

[issue23229] add inf and nan to cmath module

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: What about cmath.nanj? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23229 ___ ___

[issue23229] add inf and nan to cmath module

2015-01-13 Thread Mark Dickinson
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: