From: Matthieu B. <mat...@gm...> - 2010-07-31 16:44:13
|
Hi, You can expose __len__ as well as getitem, and then it will be available as a list. Matthieu 2010/7/31 Mohammed Rashad <ras...@ya...>: > 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... > > -- > Rashad > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user > > -- Information System Engineer, Ph.D. Blog: http://matt.eifelle.com LinkedIn: http://www.linkedin.com/in/matthieubrucher |