diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 45adbcb975d..81bcca87c65 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -603,7 +603,7 @@ complex_richcompare(PyObject *v, PyObject *w, int op) if (op != Py_EQ && op != Py_NE) { PyErr_SetString(PyExc_TypeError, - "cannot compare complex numbers using <, <=, >, >="); + "no ordering relation is defined for complex numbers"); return NULL; }