3 #ifndef CT_PYTHONHANDLE_H
4 #define CT_PYTHONHANDLE_H
24 PythonHandle(PyObject* obj,
bool weak) : m_obj(obj), m_weak(weak) {
38 void*
get()
override {
A base class for managing the lifetime of an external object, such as a Python object used by a Deleg...
Class that holds an owned or weak (borrowed) reference to a Python object.
PythonHandle(PyObject *obj, bool weak)
Create a handle to hold a Python object.
void * get() override
Get the underlying external object.
Namespace for the Cantera kernel.