Skip to content
Snippets Groups Projects
Commit 986ca69f authored by Enric Tejedor Saavedra's avatar Enric Tejedor Saavedra
Browse files

[Exp PyROOT] Pythonize based on an explicit list of TTree-related classes

Pythonizations that are common to TTree and its subclasses were injected
by checking if the given class `InheritsFrom` TTree. This operation is
costly and, since it is executed for every new class that is referenced
from the user application, it triggers the loading of libTree even if
the user Python script does not use any class from it.

The proposed solution uses an explicit list of classes to be pythonized.
While being less flexible (subclasses are not automatically picked and
pythonized) it does not suffer from the aforementioned issues.

Note that, if in the future PyROOT allows users to define their own
pythonizations, user classes that subclass TTree will still be able to
inject any desired behaviour, including the pythonizations of TTree.
parent 5e5048a7
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment