Hi guys,
I would appreciate your help here. I'm not experienced Python programmer but I have to implement one project that require passing Python list object to C and iterate it somehow.
For example:
in Python: list=[1,2.3,'string']
in C:
I do not know if to use PyArg_ParseTupl e is good here:
Thank you for help !!!
I would appreciate your help here. I'm not experienced Python programmer but I have to implement one project that require passing Python list object to C and iterate it somehow.
For example:
in Python: list=[1,2.3,'string']
in C:
I do not know if to use PyArg_ParseTupl e is good here:
Code:
static PyObject* pJPMTibPublishALot(PyObject *self, PyObject *args){
? myVal;
if (!PyArg_ParseTuple(args, "?", &myVal))
onError("Crap.")
Py_RETURN_NONE;
}
Comment