mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
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. ........
This commit is contained in:
parent
b1fba6b209
commit
578cc749ab
1 changed files with 2 additions and 2 deletions
|
|
@ -648,7 +648,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;
|
||||
}
|
||||
|
||||
|
|
@ -656,7 +656,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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue