Skip to content

Commit 1088d98

Browse files
committed
The function name for cmath.isinf in PyArg_ParseTuple() was wrong.
1 parent 62510dc commit 1088d98

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Core and Builtins
1313
Library
1414
-------
1515

16+
- Fixed cmath.isinf's name in its argument parsing code.
17+
1618
- Issue #20311, #20452: poll and epoll now round the timeout away from zero,
1719
instead of rounding towards zero, in select and selectors modules:
1820
select.epoll.poll(), selectors.PollSelector.poll() and

Modules/cmathmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ static PyObject *
10601060
cmath_isinf(PyObject *self, PyObject *args)
10611061
{
10621062
Py_complex z;
1063-
if (!PyArg_ParseTuple(args, "D:isnan", &z))
1063+
if (!PyArg_ParseTuple(args, "D:isinf", &z))
10641064
return NULL;
10651065
return PyBool_FromLong(Py_IS_INFINITY(z.real) ||
10661066
Py_IS_INFINITY(z.imag));

0 commit comments

Comments
 (0)