@@ -861,35 +861,6 @@ float_is_integer_impl(PyObject *self)
861861 return o ;
862862}
863863
864- #if 0
865- static PyObject *
866- float_is_inf (PyObject * v )
867- {
868- double x = PyFloat_AsDouble (v );
869- if (x == -1.0 && PyErr_Occurred ())
870- return NULL ;
871- return PyBool_FromLong ((long )Py_IS_INFINITY (x ));
872- }
873-
874- static PyObject *
875- float_is_nan (PyObject * v )
876- {
877- double x = PyFloat_AsDouble (v );
878- if (x == -1.0 && PyErr_Occurred ())
879- return NULL ;
880- return PyBool_FromLong ((long )Py_IS_NAN (x ));
881- }
882-
883- static PyObject *
884- float_is_finite (PyObject * v )
885- {
886- double x = PyFloat_AsDouble (v );
887- if (x == -1.0 && PyErr_Occurred ())
888- return NULL ;
889- return PyBool_FromLong ((long )Py_IS_FINITE (x ));
890- }
891- #endif
892-
893864/*[clinic input]
894865float.__trunc__
895866
@@ -1852,14 +1823,6 @@ static PyMethodDef float_methods[] = {
18521823 FLOAT_FROMHEX_METHODDEF
18531824 FLOAT_HEX_METHODDEF
18541825 FLOAT_IS_INTEGER_METHODDEF
1855- #if 0
1856- {"is_inf" , (PyCFunction )float_is_inf , METH_NOARGS ,
1857- "Return True if the float is positive or negative infinite." },
1858- {"is_finite" , (PyCFunction )float_is_finite , METH_NOARGS ,
1859- "Return True if the float is finite, neither infinite nor NaN." },
1860- {"is_nan" , (PyCFunction )float_is_nan , METH_NOARGS ,
1861- "Return True if the float is not a number (NaN)." },
1862- #endif
18631826 FLOAT___GETNEWARGS___METHODDEF
18641827 FLOAT___GETFORMAT___METHODDEF
18651828 FLOAT___SET_FORMAT___METHODDEF
0 commit comments