numarray + cPickle problem

Andreas Kostyrka andreas at kostyrka.org
Sun Nov 14 09:33:33 EST 2004


On Sat, Nov 13, 2004 at 09:27:02AM -0800, Bill  Mill wrote:
> A couple more details:
> 
> I'm using Python 2.3.4 and numarray 1.1. I've now found the
> numarray.array_persist module, which will let me pickle numarrays an
> alternative way, but I'd still like to know what's going on here. I can
> definitely pickle numarray.array objects in trivial cases.
> 
> Why doesn't Python raise an Unpickleable error? Why is it trying to
> import generic?
Just a guess: the generic submodule is a C language module that doesn't
know that it's meant to be a submodule. -> So it believes it's just
"generic.numarray" and not correctly "numpy.generic.numarray".

Andreas



More information about the Python-list mailing list