[Numpy-discussion] Memmapping .npy

Gael Varoquaux gael.varoquaux@normalesup....
Wed Nov 19 06:43:49 CST 2008

On Mon, Oct 20, 2008 at 02:45:57PM -0500, Robert Kern wrote:
> > If it would be desireable, I could try to find time for a patch. I could
> > use this in my work, and if I am going to implement it, I might as well
> > do it for everybody.

> load() would need to grow a mode= keyword argument to properly support
> memory-mapping. Possibly, we could change it to

> def load(filename, mmap_mode=None):
>     ...

> With mmap_mode=None, just do a plain read; otherwise mmap with that
> particular mode. We can introduce that immediately in 1.3 since
> memmap=True never worked.

I finally coded a trivial patch to do this. It not not something fancy,
but it answers my needs. It is ticket 954:


More information about the Numpy-discussion mailing list