Re: [Numpy-discussion] buffer arg to ndarray

2010-09-17 Thread Robert Kern
On Fri, Sep 17, 2010 at 12:42, Neal Becker wrote: > np.ndarray description says: >  buffer : object exposing buffer interface > > It's nice that it works with mmap: > > b = mmap.mmap (...) > u = np.ndarray (buffer=b ...) > > but you wouldn't know it from the above description. > > It doesn't look

[Numpy-discussion] buffer arg to ndarray

2010-09-17 Thread Neal Becker
np.ndarray description says: buffer : object exposing buffer interface It's nice that it works with mmap: b = mmap.mmap (...) u = np.ndarray (buffer=b ...) but you wouldn't know it from the above description. It doesn't look to me that the object returned by mmap exposes the buffer interface