From: Mark Dickinson Date: Sun, 17 May 2009 10:38:30 +0000 (+0000) Subject: Issue #6044: remove confusing wording from complex -> integer and X-Git-Tag: v2.7a1~1164 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50626db437de2d68936bf43c3da6752453fafca9;p=python Issue #6044: remove confusing wording from complex -> integer and complex -> float conversion error messages. --- diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 8bba241f5c..6e3172307d 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; }