Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62510dc commit 1088d98Copy full SHA for 1088d98
2 files changed
Misc/NEWS
@@ -13,6 +13,8 @@ Core and Builtins
13
Library
14
-------
15
16
+- Fixed cmath.isinf's name in its argument parsing code.
17
+
18
- Issue #20311, #20452: poll and epoll now round the timeout away from zero,
19
instead of rounding towards zero, in select and selectors modules:
20
select.epoll.poll(), selectors.PollSelector.poll() and
Modules/cmathmodule.c
@@ -1060,7 +1060,7 @@ static PyObject *
1060
cmath_isinf(PyObject *self, PyObject *args)
1061
{
1062
Py_complex z;
1063
- if (!PyArg_ParseTuple(args, "D:isnan", &z))
+ if (!PyArg_ParseTuple(args, "D:isinf", &z))
1064
return NULL;
1065
return PyBool_FromLong(Py_IS_INFINITY(z.real) ||
1066
Py_IS_INFINITY(z.imag));
0 commit comments