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 fb1b60a825
commit 1106404b1e
5 changed files with 11 additions and 10 deletions

View File

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