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
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@gclements.plus.com>