Kaydet (Commit) 738a70a8 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Bug #1079011: Incorrect error message (somewhat)

üst f437e092
...@@ -603,7 +603,7 @@ complex_richcompare(PyObject *v, PyObject *w, int op) ...@@ -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;
} }
......
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