Skip to content

Commit

Permalink
fix for cling
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipul-Cariappa committed Oct 29, 2024
1 parent 0cba8db commit ce0b710
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CPPScope.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,8 @@ static PyObject* meta_getattro(PyObject* pyclass, PyObject* pyname)
if (attr) {
// cache the result
if (CPPDataMember_Check(attr)) {
if (Cppyy::IsClass(scope))
PyType_Type.tp_setattro(pyclass, pyname, attr);
PyType_Type.tp_setattro((PyObject*)Py_TYPE(pyclass), pyname, attr);

Py_DECREF(attr);
Expand Down

0 comments on commit ce0b710

Please sign in to comment.