[Numpy-discussion] patch to pickle np.memmap

Brent Pedersen bpederse at gmail.com
Tue Apr 13 23:59:49 EDT 2010


On Tue, Apr 13, 2010 at 8:52 PM, Brent Pedersen <bpederse at gmail.com> wrote:
> hi, i posted a patch to allow pickling of np.memmap objects.
> http://projects.scipy.org/numpy/ticket/1452
>
> currently, it always returns 'r' for the mode.
> is that the best thing to do there?
> any other changes?
> -brent
>

and i guess it should (but does not with that patch) correctly handle:

>>> a = np.memmap(...)
>>> b = a[2:]
>>> cPickle.dumps(b)



More information about the NumPy-Discussion mailing list