12 if (0 == self || 0 == method) {
13 throw std::runtime_error(
"Invalid Python object and method");
16 PyObject* r = PyObject_CallMethod(self,
const_cast<char*
>(method),
17 const_cast<char*
>(
""));
void call_python_method(PyObject *self, const char *method)