Bug #1079011: Incorrect error message (somewhat)
This commit is contained in:
parent
da264121f4
commit
5d01aa4f6a
|
@ -603,7 +603,7 @@ complex_richcompare(PyObject *v, PyObject *w, int op)
|
||||||
|
|
||||||
if (op != Py_EQ && op != Py_NE) {
|
if (op != Py_EQ && op != Py_NE) {
|
||||||
PyErr_SetString(PyExc_TypeError,
|
PyErr_SetString(PyExc_TypeError,
|
||||||
"cannot compare complex numbers using <, <=, >, >=");
|
"no ordering relation is defined for complex numbers");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue