From: Brett Cannon Date: Fri, 31 Jan 2014 17:04:36 +0000 (-0500) Subject: The function name for cmath.isinf in PyArg_ParseTuple() was wrong. X-Git-Tag: v3.4.0rc1~155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1088d988996dd8c63a73a5139173627320d74405;p=python The function name for cmath.isinf in PyArg_ParseTuple() was wrong. --- diff --git a/Misc/NEWS b/Misc/NEWS index 579c37aa27..fa2968b193 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -13,6 +13,8 @@ Core and Builtins Library ------- +- Fixed cmath.isinf's name in its argument parsing code. + - Issue #20311, #20452: poll and epoll now round the timeout away from zero, instead of rounding towards zero, in select and selectors modules: select.epoll.poll(), selectors.PollSelector.poll() and diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c index 36bf4a1e3d..91b369a2f5 100644 --- a/Modules/cmathmodule.c +++ b/Modules/cmathmodule.c @@ -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));