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" );
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 Bool_t Initialize(TCallContext *ctxt=0)
done if cache is already setup
virtual PyObject * Call(ObjectProxy *&, PyObject *args, PyObject *kwds, TCallContext *ctx=0)
preliminary check in case keywords are accidently used (they are ignored otherwise) ...
virtual PyObject * Execute(void *self, ptrdiff_t offset, TCallContext *ctxt=0)
call the interface method
virtual Bool_t ConvertAndSetArgs(PyObject *args, TCallContext *ctxt=0)