Kaydet (Commit) df99f048 authored tarafından Mark Dickinson's avatar Mark Dickinson

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.
........
üst 96f15392
......@@ -785,7 +785,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;
}
......@@ -793,7 +793,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;
}
......@@ -801,7 +801,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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment