]> granicus.if.org Git - python/commitdiff
Issue #6044: remove confusing wording from complex -> integer and
authorMark Dickinson <dickinsm@gmail.com>
Sun, 17 May 2009 10:38:30 +0000 (10:38 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 17 May 2009 10:38:30 +0000 (10:38 +0000)
complex -> float conversion error messages.

Objects/complexobject.c

index 8bba241f5c20734fcc83d8ccee34696fce6c284c..6e3172307d8a922f7cacc7edc7687748c62d2713 100644 (file)
@@ -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;
 }