From: Donovan P. <don...@gm...> - 2008-03-26 19:50:15
|
Hello, I have a simple C++ function that I am wrapping with swig: void getImage(int frameNum, int* imageData); I have successfully wrapped this function. Using a simple helper function, I can create a C int array in python and pass it into this function. Now, I would like to be able to access the elements of this C int array in python. Clearly I could write a simple C helper function that took in the array points and the desired element and would return the value of the array at the element. Is there a way to access the elements of this C array directly? Can I convert the C array into a python list? Much thanks. Cheers, Donovan |