Logo ROOT  
Reference Guide
TDirectoryFilePyz.cxx File Reference
#include "CPyCppyy.h"
#include "CPPInstance.h"
#include "CPPOverload.h"
#include "PyROOTPythonize.h"
#include "ProxyWrappers.h"
#include "Python.h"
#include "Utility.h"
#include "PyzCppHelpers.hxx"
#include "TClass.h"
#include "TKey.h"
#include "TDirectoryFile.h"
Include dependency graph for TDirectoryFilePyz.cxx:

Functions

PyObjectTDirectoryFileGetPyz (CPPInstance *self, PyObject *pynamecycle)
 Allow access to objects through the method Get() This concerns both TDirectoryFile and TFile, since the latter inherits the Get method from the former. More...
 

Function Documentation

◆ TDirectoryFileGetPyz()

PyObject * TDirectoryFileGetPyz ( CPPInstance self,
PyObject pynamecycle 
)

Allow access to objects through the method Get() This concerns both TDirectoryFile and TFile, since the latter inherits the Get method from the former.

We decided not to inject this behavior directly in TDirectory because this one already has a templated method Get which, when invoked from Python, returns an object of the derived class (e.g. TH1F) and not a generic TObject. In case the object is not found, a null pointer is returned.

Definition at line 35 of file TDirectoryFilePyz.cxx.