[Numpy-discussion] Bug in pickling an ndarray?

Nathaniel Smith njs@pobox....
Sat Jun 30 15:30:46 CDT 2012


On Sat, Jun 30, 2012 at 9:15 PM, Daniel Hyams <dhyams@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