75 if (!fn || fn == Py_None)
std::pair< std::vector< unsigned int >, bool > res
A concrete implementation of ILogger that calls back to Python.
Utility code originally from pyroot.
virtual void debug(const char *msg)
Log a debugging message.
PyObject * m_errorfn
The error message function.
PyLogger(PyObject *debugfn, PyObject *errorfn)
Constructor.
static void call(PyObject *fn, const char *msg)
Common code to call Python callback.
PyObject * m_debugfn
The debug message function.
virtual void error(const char *msg)
Log an error message.
CPyCppyy::PyException PyException