mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
The function name for cmath.isinf in PyArg_ParseTuple() was wrong.
This commit is contained in:
parent
62510dced9
commit
1088d98899
2 changed files with 3 additions and 1 deletions
|
@ -1060,7 +1060,7 @@ static PyObject *
|
|||
cmath_isinf(PyObject *self, PyObject *args)
|
||||
{
|
||||
Py_complex z;
|
||||
if (!PyArg_ParseTuple(args, "D:isnan", &z))
|
||||
if (!PyArg_ParseTuple(args, "D:isinf", &z))
|
||||
return NULL;
|
||||
return PyBool_FromLong(Py_IS_INFINITY(z.real) ||
|
||||
Py_IS_INFINITY(z.imag));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue