+ extend number protocol

This commit is contained in:
wmayer
2014-02-14 13:45:56 +01:00
parent 438b6d4681
commit 8c354c7635
4 changed files with 10 additions and 15 deletions

View File

@@ -740,8 +740,7 @@ PyObject * MatrixPy::number_absolute_handler (PyObject *self)
int MatrixPy::number_nonzero_handler (PyObject *self)
{
PyErr_SetString(PyExc_NotImplementedError, "Not implemented");
return 0;
return 1;
}
PyObject * MatrixPy::number_invert_handler (PyObject *self)
@@ -783,7 +782,7 @@ PyObject * MatrixPy::number_or_handler (PyObject *self, PyObject *other)
int MatrixPy::number_coerce_handler (PyObject **self, PyObject **other)
{
PyErr_SetString(PyExc_NotImplementedError, "Not implemented");
return 0;
return 1;
}
PyObject * MatrixPy::number_int_handler (PyObject *self)