diff -r d115dc671f52 Objects/floatobject.c --- a/Objects/floatobject.c Sun Oct 13 11:34:01 2013 +0100 +++ b/Objects/floatobject.c Sun Oct 13 13:30:42 2013 +0200 @@ -797,9 +797,8 @@ return o; } -#if 0 static PyObject * -float_is_inf(PyObject *v) +float_is_infinite(PyObject *v) { double x = PyFloat_AsDouble(v); if (x == -1.0 && PyErr_Occurred()) @@ -824,7 +823,6 @@ return NULL; return PyBool_FromLong((long)Py_IS_FINITE(x)); } -#endif static PyObject * float_trunc(PyObject *v) @@ -1740,14 +1738,12 @@ METH_NOARGS, float_hex_doc}, {"is_integer", (PyCFunction)float_is_integer, METH_NOARGS, "Return True if the float is an integer."}, -#if 0 - {"is_inf", (PyCFunction)float_is_inf, METH_NOARGS, + {"is_infinite", (PyCFunction)float_is_infinite, METH_NOARGS, "Return True if the float is positive or negative infinite."}, {"is_finite", (PyCFunction)float_is_finite, METH_NOARGS, "Return True if the float is finite, neither infinite nor NaN."}, {"is_nan", (PyCFunction)float_is_nan, METH_NOARGS, "Return True if the float is not a number (NaN)."}, -#endif {"__getnewargs__", (PyCFunction)float_getnewargs, METH_NOARGS}, {"__getformat__", (PyCFunction)float_getformat, METH_O|METH_CLASS, float_getformat_doc},