[Numpy-discussion] re: Unpickling python 2.2 userArray objs in python 2.3

sag at hydrosphere.com sag at hydrosphere.com
Fri Jul 23 10:09:11 CDT 2004

I have further information on my problem of unpickling an object that 
is based on Numeric.UserArray class.

I can recreate the endless getattr loop with the following code, 
which is a small subsection of my class:

data = Numeric.ones(31,savespace=1)
ua = UserArray(data)
blob = cPickle.dumps(ua)
obj = cPickle.loads(blob)      <-- fails here

If you pickle the data obj, everything works.  This code works in 

Is this a bug?  Is it fixable?


More information about the Numpy-discussion mailing list