Ownership handling for python bindings
It has come to my attention that ROOTs python bindings (understandably) need some additional help to properly track ownership if objects are created within a method that's not a constructor. See this mail thread (going back to ROOT 5, but following a quick test this still seems to apply): https://roottalk.root.cern.narkive.com/LdrEomW1/pyroot-and-tfile-deletion
Likely we could include in QFramework_tempalte.py a list of such methods which create objects and assume the caller to take ownership. These method bindings would need to have their _creates
attribute set to True
Additional note: this does not directly affect tqmerge (or only to a minor extent) as there we make sure to clean up a large fraction of memory explicitly
Edited by Ralf Gugel