[Numpy-discussion] make C array accessible to python without copy

Sebastian Haase haase at msg.ucsf.edu
Fri Jan 17 14:25:04 CST 2003

What is the C API to make an array that got allocated,
let's say, by  a = new short[512*512],
accessible to python as numarray.

I tried NA_New - but that seems to make a copy.
I would need it to use the original memory space
so that I can "observe" the array from Python WHILE
the underlying C array changes (it's actually a camera image)

Sebastian Haase

More information about the Numpy-discussion mailing list