[GRASS-dev] c++ and python

Mohammed Rashad rashadkm at yahoo.com
Sat Jul 31 11:11:32 EDT 2010


I had a python list which holds 3 integer value. 
self.buffer[0] = int array ( c++ array)
now i need to read self.buffer[0][0] to read the first element of array. But 
when i used :- print self.buffer[0][0] 

I got this error:

TypeError: 'PySwigObject' object is unsubscriptable


How to read that c++ array as a python list?

 --
Rashad



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20100731/af1ec256/attachment.html


More information about the grass-dev mailing list