mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #6044: remove confusing wording from complex -> integer and
complex -> float conversion error messages.
This commit is contained in:
parent
8d252e498c
commit
50626db437
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue