]> granicus.if.org Git - python/commitdiff
Bug #1079011: Incorrect error message (somewhat)
authorRaymond Hettinger <python@rcn.com>
Sun, 19 Dec 2004 20:45:20 +0000 (20:45 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 19 Dec 2004 20:45:20 +0000 (20:45 +0000)
Objects/complexobject.c

index 45adbcb975d6c6e0539b67cda020234ab3389e0f..81bcca87c65e163e462f160c5c0214a35f73d8d0 100644 (file)
@@ -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;
        }