[Numpy-discussion] [Patch] Fix memmap pickling

Gael Varoquaux gael.varoquaux at normalesup.org
Mon May 24 18:37:50 EDT 2010


On Mon, May 24, 2010 at 03:33:09PM -0700, Brent Pedersen wrote:
> On Mon, May 24, 2010 at 3:25 PM, Gael Varoquaux
> <gael.varoquaux at normalesup.org> wrote:
> > Memmapped arrays don't pickle right. I know that to get them to
> > really pickle and restore identically, we would need some effort.
> > However, in the current status, pickling and restoring a memmapped array
> > leads to tracebacks that seem like they could be avoided.

> > I am attaching a patch with a test that shows the problem, and a fix.
> > Should I create a ticket, or is this light-enough to be applied
> > immediatly?

> also check this:
> http://projects.scipy.org/numpy/ticket/1452

> still needs work.

Does look good. Is there an ETA for your patch to be applied? 

Right now this bug is making code crash when memmapped arrays are used
(eg multiprocessing), so a hot fix can be useful, without removing any
merit to your work that addresses the underlying problem.

Cheers,

Gaël



More information about the NumPy-Discussion mailing list