[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 EDT 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 
Python2.2.

Is this a bug?  Is it fixable?

sue




More information about the NumPy-Discussion mailing list