28 int nArgs = args.size();
29 PyObject* pyargs = PyTuple_New( nArgs );
30 for (
int i = 0; i < nArgs; ++i )
31 PyTuple_SET_ITEM( pyargs, i, (
PyObject*)args[i] );
32 pyself = PyObject_Call( pyclass, pyargs,
NULL );
41 pyself = PyObject_Call( pyclass, pyargs,
NULL );
48 int nArgs = args.size();
49 PyObject* pyargs = PyTuple_New( nArgs );
50 for (
int i = 0; i < nArgs; ++i )
51 PyTuple_SET_ITEM( pyargs, i, (
PyObject*)args[i] );
61 Py_XINCREF( pyobject );
#define PyROOT_PyUnicode_FromString
TPyArg & operator=(const TPyArg &)
Assignment operator.
void CallConstructor(PyObject *&pyself, PyObject *pyclass)
static PyObject * CallMethod(PyObject *pymeth, const std::vector< TPyArg > &args)
virtual ~TPyArg()
Done with held PyObject.
typedef void((*Func_t)())