implement true divide handler of the number protocol for Quantity

This commit is contained in:
wmayer
2018-10-27 15:27:27 +02:00
parent 7ec3984cbe
commit 83f61b4372
5 changed files with 11 additions and 10 deletions

View File

@@ -752,13 +752,11 @@ int MatrixPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)
return 0;
}
#if PY_MAJOR_VERSION < 3
PyObject * MatrixPy::number_divide_handler (PyObject* /*self*/, PyObject* /*other*/)
{
PyErr_SetString(PyExc_NotImplementedError, "Not implemented");
return 0;
}
#endif
PyObject * MatrixPy::number_remainder_handler (PyObject* /*self*/, PyObject* /*other*/)
{