31 int nArgs = args.size();
32 PyObject *pyargs = PyTuple_New(nArgs);
33 for (
int i = 0; i < nArgs; ++i)
34 PyTuple_SET_ITEM(pyargs, i, (
PyObject *)args[i]);
35 pyself = PyObject_Call(pyclass, pyargs, NULL);
43 pyself = PyObject_Call(pyclass, pyargs, NULL);
50 int nArgs = args.size();
51 PyObject *pyargs = PyTuple_New(nArgs);
52 for (
int i = 0; i < nArgs; ++i)
53 PyTuple_SET_ITEM(pyargs, i, (
PyObject *)args[i]);
54 PyObject *result = PyObject_Call(pymeth, pyargs, NULL);
145 Py_XINCREF(fPyObject);
#define CPyCppyy_PyText_FromString
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)
void CallConstructor(PyObject *&pyself, PyObject *pyclass)