Mercurial > cpython-lru_cache-weakref
diff Objects/complexobject.c @ 54147:adbc662ff4c1
Merged revisions 72718 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72718 | mark.dickinson | 2009-05-17 11:38:30 +0100 (Sun, 17 May 2009) | 4 lines
Issue #6044: remove confusing wording from complex -> integer and
complex -> float conversion error messages.
........
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sun, 17 May 2009 10:40:10 +0000 |
| parents | c6376d3fa968 |
| children | 670fa0c0ff9a |
line wrap: on
line diff
--- a/Objects/complexobject.c Sun May 17 10:12:02 2009 +0000 +++ b/Objects/complexobject.c Sun May 17 10:40:10 2009 +0000 @@ -648,7 +648,7 @@ 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; } @@ -656,7 +656,7 @@ 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; }
