summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-05-17 10:38:30 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-05-17 10:38:30 (GMT)
commit50626db437de2d68936bf43c3da6752453fafca9 (patch)
tree7c12693c4513beeb8a1bfa557c405dbf1010ffe4
parent8d252e498c542599db7beec66cdbee6eda871049 (diff)
downloadcpython-50626db437de2d68936bf43c3da6752453fafca9.zip
cpython-50626db437de2d68936bf43c3da6752453fafca9.tar.gz
cpython-50626db437de2d68936bf43c3da6752453fafca9.tar.bz2
Issue #6044: remove confusing wording from complex -> integer and
complex -> float conversion error messages.
-rw-r--r--Objects/complexobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c
index 8bba241..6e31723 100644
--- a/Objects/complexobject.c
+++ b/Objects/complexobject.c
@@ -800,7 +800,7 @@ static PyObject *
complex_int(PyObject *v)
{
PyErr_SetString(PyExc_TypeError,
- "can't convert complex to int; use int(abs(z))");
+ "can't convert complex to int");
return NULL;
}
@@ -808,7 +808,7 @@ static PyObject *
complex_long(PyObject *v)
{
PyErr_SetString(PyExc_TypeError,
- "can't convert complex to long; use long(abs(z))");
+ "can't convert complex to long");
return NULL;
}
@@ -816,7 +816,7 @@ static PyObject *
complex_float(PyObject *v)
{
PyErr_SetString(PyExc_TypeError,
- "can't convert complex to float; use abs(z)");
+ "can't convert complex to float");
return NULL;
}