0000623: Matrix and Vector API extension

This commit is contained in:
wmayer
2012-03-11 16:22:17 +01:00
parent 51773d2274
commit 44147e71ab
5 changed files with 190 additions and 4 deletions

View File

@@ -237,8 +237,8 @@ PyObject* VectorPy::richCompare(PyObject *v, PyObject *w, int op)
}
}
else {
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
PyErr_SetString(PyExc_TypeError, "Cannot compare Matrix with other type");
return 0;
}
}