mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
closes bpo-39415: Remove unused codes from longobject.c complexobject.c floatobject.c. (GH-18105)
This commit is contained in:
parent
47be7d0108
commit
0d5eac8c32
3 changed files with 0 additions and 68 deletions
|
@ -731,29 +731,9 @@ complex__format__(PyObject* self, PyObject* args)
|
|||
return _PyUnicodeWriter_Finish(&writer);
|
||||
}
|
||||
|
||||
#if 0
|
||||
static PyObject *
|
||||
complex_is_finite(PyObject *self)
|
||||
{
|
||||
Py_complex c;
|
||||
c = ((PyComplexObject *)self)->cval;
|
||||
return PyBool_FromLong((long)(Py_IS_FINITE(c.real) &&
|
||||
Py_IS_FINITE(c.imag)));
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(complex_is_finite_doc,
|
||||
"complex.is_finite() -> bool\n"
|
||||
"\n"
|
||||
"Returns True if the real and the imaginary part is finite.");
|
||||
#endif
|
||||
|
||||
static PyMethodDef complex_methods[] = {
|
||||
{"conjugate", (PyCFunction)complex_conjugate, METH_NOARGS,
|
||||
complex_conjugate_doc},
|
||||
#if 0
|
||||
{"is_finite", (PyCFunction)complex_is_finite, METH_NOARGS,
|
||||
complex_is_finite_doc},
|
||||
#endif
|
||||
{"__getnewargs__", (PyCFunction)complex_getnewargs, METH_NOARGS},
|
||||
{"__format__", (PyCFunction)complex__format__,
|
||||
METH_VARARGS, complex__format__doc},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue