21 PyObject* newArgs = PyTuple_New( sz + 1 );
22 for (
int i = 0; i < sz; ++i ) {
23 PyObject* item = PyTuple_GET_ITEM( args, i );
25 PyTuple_SET_ITEM( newArgs, i + 1, item );
29 PyTuple_SET_ITEM( newArgs, 0, (
PyObject*)self );
40 if ( kwds != 0 && PyDict_Size( kwds ) ) {
41 PyErr_SetString( PyExc_TypeError,
"keyword arguments are not yet supported" );
50 if ( ! ( args = this->PreProcessArgs( self, args, kwds ) ) )
54 Bool_t bConvertOk = this->ConvertAndSetArgs( args, ctxt );
57 if ( bConvertOk ==
kFALSE )
61 return this->Execute( 0, 0, ctxt );
virtual PyObject * PreProcessArgs(ObjectProxy *&self, PyObject *args, PyObject *kwds)
verify existence of self, return if ok
virtual PyObject * Call(ObjectProxy *&, PyObject *args, PyObject *kwds, TCallContext *ctx=0)
preliminary check in case keywords are accidently used (they are ignored otherwise)
void Initialize(Bool_t useTMVAStyle=kTRUE)