[GRASS-dev] c++ and python
Glynn Clements
glynn at gclements.plus.com
Sun Aug 1 11:47:09 EDT 2010
Mohammed Rashad wrote:
> 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
The use of SWIG is being abandoned in favour of ctypes.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list