mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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