diff options
| author | Dong-hee Na <donghee.na92@gmail.com> | 2020-01-22 02:49:30 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2020-01-22 02:49:30 (GMT) |
| commit | 0d5eac8c327251f8edde5261cee43975d81311f6 (patch) | |
| tree | 8660f383a7af9fc098f0832743f1addc99624598 /Objects/complexobject.c | |
| parent | 47be7d0108b4021ede111dbd15a095c725be46b7 (diff) | |
| download | cpython-0d5eac8c327251f8edde5261cee43975d81311f6.zip cpython-0d5eac8c327251f8edde5261cee43975d81311f6.tar.gz cpython-0d5eac8c327251f8edde5261cee43975d81311f6.tar.bz2 | |
closes bpo-39415: Remove unused codes from longobject.c complexobject.c floatobject.c. (GH-18105)
Diffstat (limited to 'Objects/complexobject.c')
| -rw-r--r-- | Objects/complexobject.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 367752d..f1b7667 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -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}, |
