Function Karana::Core::pythonRefErrString

Function Karana::Core::pythonRefErrString#

Function Documentation#

inline std::string Karana::Core::pythonRefErrString(Base &base, py::handle obj, size_t refcnt, size_t num_refs_found)#

Get the error string for a Python reference we can’t delete.

This also tries to start a PythonReferenceGraphGui if possible.

Parameters:
  • base – The C++ object associated with the Python reference we can’t delete.

  • obj – A handle to the Python object that we can’t delete.

  • refcnt – The reference count in Python.

  • num_refs_found – The number of references we found that could be deleted.

Returns:

The error string.