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 );
110 Py_XINCREF(
s.fPyObject );
120 Py_XINCREF(
s.fPyObject );
139 Py_XINCREF( fPyObject );
#define PyROOT_PyUnicode_FromString
void CallConstructor(PyObject *&pyself, PyObject *pyclass)
static PyObject * CallMethod(PyObject *pymeth, const std::vector< TPyArg > &args)
static void CallDestructor(PyObject *&pyself, PyObject *pymeth, const std::vector< TPyArg > &args)
TPyArg & operator=(const TPyArg &)
Assignment operator.
virtual ~TPyArg()
Done with held PyObject.
static void CallConstructor(PyObject *&pyself, PyObject *pyclass, const std::vector< TPyArg > &args)
static constexpr double s