python and swig

Rashad rashadkm at gmail.com
Sat Jul 31 22:49:46 EDT 2010


I have a swig object of type int* (an integer array)
 how to covert this swig object to python list

now :
print self.buffer[0] gives swig object of type int*
i want to access the elements of array self.buffer[0]

like print self.buffer[0][0] , self.buffer[0][1],  self.buffer[0][2]
etc...



More information about the Python-list mailing list