python and swig

Discussion in 'Python' started by Rashad, Aug 1, 2010.

  1. Rashad

    Rashad Guest

    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, Aug 1, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alan Sheehan

    SWIG and Python in use?

    Alan Sheehan, Jul 7, 2003, in forum: Python
    Replies:
    1
    Views:
    314
    Wolfgang
    Jul 8, 2003
  2. Phil Schmidt

    SWIG, MinGW, and Python 2.3 problem

    Phil Schmidt, Sep 10, 2003, in forum: Python
    Replies:
    0
    Views:
    535
    Phil Schmidt
    Sep 10, 2003
  3. =?iso-8859-2?q?Bo=B9tjan_Jerko?=

    swig and list in python

    =?iso-8859-2?q?Bo=B9tjan_Jerko?=, Jun 2, 2004, in forum: Python
    Replies:
    1
    Views:
    282
    Miki Tebeka
    Jun 2, 2004
  4. Jeff
    Replies:
    0
    Views:
    712
  5. Keith Sabine
    Replies:
    0
    Views:
    572
    Keith Sabine
    Jun 6, 2008
Loading...

Share This Page