I'll pitch in a few donuts (and my eternal gratitude) for an example of
shared memory use using numpy arrays that is cross platform, or at least works in linux, mac, and windows.
I thought that getting the address from the buffer() of the array and creating a new one from it in the other process is most likely to work cross-platform, but I don't know enough of Python innards to speak confidently.
I have used it with numarray before :
>> N = numarray.zeros((1000,), numarray.Float)
>> N.info()
...
data: <memory at 009d67b8 with size:8000 held by object 009d6798...
I'm also considering trying more mix with ctypes, as in:
http://www.scipy.org/Cookbook/Ctypes#head-db3c64e7ade3f0257084b9c03f03d286ff3b1b4f
- Ray
_______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
