3#define CPYCPPYY_INTERNAL 1
5#undef CPYCPPYY_INTERNAL
22 int nArgs = (
int)args.size();
23 PyObject* pyargs = PyTuple_New(nArgs);
24 for (
int i = 0; i < nArgs; ++i)
25 PyTuple_SET_ITEM(pyargs, i, (
PyObject*)args[i]);
26 pyself = PyObject_Call(pyclass, pyargs,
nullptr);
34 pyself = PyObject_Call(pyclass, pyargs,
nullptr);
41 int nArgs = (
int)args.size();
42 PyObject* pyargs = PyTuple_New(nArgs);
43 for (
int i = 0; i < nArgs; ++i)
44 PyTuple_SET_ITEM(pyargs, i, (
PyObject*)args[i]);
45 PyObject* result = PyObject_Call(pymeth, pyargs,
nullptr);
129 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)