25 int nArgs = args.size();
26 PyObject* pyargs = PyTuple_New( nArgs );
27 for (
int i = 0; i < nArgs; ++i )
28 PyTuple_SET_ITEM( pyargs, i, (
PyObject*)args[i] );
29 pyself = PyObject_Call( pyclass, pyargs, NULL );
37 pyself = PyObject_Call( pyclass, pyargs, NULL );
44 int nArgs = args.size();
45 PyObject* pyargs = PyTuple_New( nArgs );
46 for (
int i = 0; i < nArgs; ++i )
47 PyTuple_SET_ITEM( pyargs, i, (
PyObject*)args[i] );
48 PyObject* result = PyObject_Call( pymeth, pyargs, NULL );
69 Py_XINCREF( pyobject );
#define PyROOT_PyUnicode_FromString
TPyArg & operator=(const TPyArg &)
Assignment operator.
static PyObject * CallMethod(PyObject *pymeth, const std::vector< TPyArg > &args)
static void CallConstructor(PyObject *&pyself, PyObject *pyclass, const std::vector< TPyArg > &args)
static void CallDestructor(PyObject *&pyself, PyObject *pymeth, const std::vector< TPyArg > &args)
virtual ~TPyArg()
Done with held PyObject.
static constexpr double s