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 );
70 fPyObject = PyInt_FromLong( value );
78 fPyObject = PyLong_FromLong( value );
86 fPyObject = PyFloat_FromDouble( value );
102 Py_XINCREF( s.fPyObject );
103 fPyObject = s.fPyObject;
112 Py_XINCREF( s.fPyObject );
113 fPyObject = s.fPyObject;
123 Py_XDECREF( fPyObject );
131 Py_XINCREF( fPyObject );
#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)())
ClassImp(TPyArg) void TPyArg