summaryrefslogtreecommitdiffstats
path: root/Objects/complexobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r--Objects/complexobject.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c
index 75283a0..a7fd7dc 100644
--- a/Objects/complexobject.c
+++ b/Objects/complexobject.c
@@ -661,14 +661,6 @@ complex_int(PyObject *v)
}
static PyObject *
-complex_long(PyObject *v)
-{
- PyErr_SetString(PyExc_TypeError,
- "can't convert complex to long; use long(abs(z))");
- return NULL;
-}
-
-static PyObject *
complex_float(PyObject *v)
{
PyErr_SetString(PyExc_TypeError,
@@ -1068,7 +1060,7 @@ static PyNumberMethods complex_as_number = {
0, /* nb_xor */
0, /* nb_or */
complex_int, /* nb_int */
- complex_long, /* nb_long */
+ 0, /* nb_long */
complex_float, /* nb_float */
0, /* nb_inplace_add */
0, /* nb_inplace_subtract */