C pointers/Python

integer intager at gmail.com
Mon Mar 21 20:16:18 EST 2005


you never deal directly with pointers in python.
in your case, you need to pass a mutable object as your 'buffer'
argument and perform operations on it such that 'buffer==data'. (for
example, you could use a list here.)
def testit( buffer ):
   for i in range( len ):
      buffer[A+i]=data[B+i]
for some constants A,B




More information about the Python-list mailing list