Contiguous memory blocks

panbru panbru at
Tue Aug 5 16:59:57 CEST 2003

I'm doing some native code stuff and want to pass continguos memory 
blocks of data back and forth between Python and C, with the memory 
blocks modifiable in both realms.  What is a good way to do that?

As I understand it, "buffer interface" objects (e.g. strings or arrays) 
won't work because memory is not guaranteed to be continguous.


More information about the Python-list mailing list