17 PyObject* tup = PyTuple_New( nelems );
18 for (
int i = 0; i < nelems; ++i ) {
21 PyTuple_SetItem( tup, i,
28 Py_INCREF( tup ); PyTuple_SET_ITEM( args, 0, tup );
30 if ( PyErr_Occurred() ) PyErr_Print();
41 (
char*)
"ROOT.InstancesArray",
59 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_CHECKTYPES |
61 (
char*)
"PyROOT long object for pass by reference",
86 #if PY_VERSION_HEX >= 0x02030000
89 #if PY_VERSION_HEX >= 0x02060000
92 #if PY_VERSION_HEX >= 0x03040000
PyTypeObject TTupleOfInstances_Type
Representation of C-style array of instances.
#define PyVarObject_HEAD_INIT(type, size)
PyObject * TTupleOfInstances_New(Cppyy::TCppObject_t address, Cppyy::TCppType_t klass, Py_ssize_t nelems)
size_t SizeOf(TCppType_t klass)
PyObject * BindCppObject(Cppyy::TCppObject_t object, Cppyy::TCppType_t klass, Bool_t isRef=kFALSE)
if the object is a null pointer, return a typed one (as needed for overloading)