[Numpy-discussion] Bug in pickling an ndarray?

Nathaniel Smith njs at pobox.com
Sat Jun 30 16:30:46 EDT 2012


On Sat, Jun 30, 2012 at 9:15 PM, Daniel Hyams <dhyams at gmail.com> wrote:
> I am having trouble pickling (and then unpickling) an ndarray. Upon
> unpickling, the "base" attribute of the ndarray is set to some very strange
> string ("base" was None when the ndarray was pickled, so it should remain
> None).

This sounds like correct behaviour to me -- is it causing you a
problem? In general ndarray's don't keep things like memory layout,
view sharing, etc. through pickling, and that means that things like
.flags and .base may change.

-n



More information about the NumPy-Discussion mailing list