Contiguous memory blocks

panbru panbru at comcast.net
Tue Aug 5 10:59:57 EDT 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.

Tim





More information about the Python-list mailing list