int i; PyObject *lst = PyList_New(len_A); PyObject *num; if(!lst) return NULL; for(i=0;i<len_a;i++){> num=PyFloat_FromDouble(A[i]); if(!num){ Py_DECREF(lst); return NuLL; } PyList_SET_ITEM(lst,i,num); } free(A); PyObject *MyResult = Py_BuildValue("Oi",lst,AnotherIntVariable); Py_DECREF(lst); return MyResult
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)