Logo ROOT   6.16/01
Reference Guide
TClassMethodHolder.cxx
Go to the documentation of this file.
1// @(#)root/pyroot:$Id$
2// Author: Wim Lavrijsen, Aug 2004
3
4// Bindings
5#include "PyROOT.h"
7
8
9//- public members --------------------------------------------------------------
11 ObjectProxy*&, PyObject* args, PyObject* kwds, TCallContext* ctxt )
12{
13// preliminary check in case keywords are accidently used (they are ignored otherwise)
14 if ( kwds != 0 && PyDict_Size( kwds ) ) {
15 PyErr_SetString( PyExc_TypeError, "keyword arguments are not yet supported" );
16 return 0;
17 }
18
19// setup as necessary
20 if ( ! this->Initialize( ctxt ) )
21 return 0; // important: 0, not Py_None
22
23// translate the arguments
24 if ( ! this->ConvertAndSetArgs( args, ctxt ) )
25 return 0; // important: 0, not Py_None
26
27// execute function
28 return this->Execute( 0, 0, ctxt );
29}
_object PyObject
Definition: TPyArg.h:20
virtual PyObject * Call(ObjectProxy *&, PyObject *args, PyObject *kwds, TCallContext *ctxt=0)
preliminary check in case keywords are accidently used (they are ignored otherwise)
virtual Bool_t Initialize(TCallContext *ctxt=0)
done if cache is already setup
virtual PyObject * Execute(void *self, ptrdiff_t offset, TCallContext *ctxt=0)
call the interface method
virtual Bool_t ConvertAndSetArgs(PyObject *args, TCallContext *ctxt=0)