Commit 50626db4 authored by Mark Dickinson's avatar Mark Dickinson

Issue #6044: remove confusing wording from complex -> integer and

complex -> float conversion error messages.
parent 8d252e49
...@@ -800,7 +800,7 @@ static PyObject * ...@@ -800,7 +800,7 @@ static PyObject *
complex_int(PyObject *v) complex_int(PyObject *v)
{ {
PyErr_SetString(PyExc_TypeError, PyErr_SetString(PyExc_TypeError,
"can't convert complex to int; use int(abs(z))"); "can't convert complex to int");
return NULL; return NULL;
} }
...@@ -808,7 +808,7 @@ static PyObject * ...@@ -808,7 +808,7 @@ static PyObject *
complex_long(PyObject *v) complex_long(PyObject *v)
{ {
PyErr_SetString(PyExc_TypeError, PyErr_SetString(PyExc_TypeError,
"can't convert complex to long; use long(abs(z))"); "can't convert complex to long");
return NULL; return NULL;
} }
...@@ -816,7 +816,7 @@ static PyObject * ...@@ -816,7 +816,7 @@ static PyObject *
complex_float(PyObject *v) complex_float(PyObject *v)
{ {
PyErr_SetString(PyExc_TypeError, PyErr_SetString(PyExc_TypeError,
"can't convert complex to float; use abs(z)"); "can't convert complex to float");
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment