[Numpy-discussion] more on MA not pickling

Tavis Rudd tavis at calrudd.com
Tue Apr 17 16:28:46 CDT 2001


> Unfortunately, *my* application does this. (:->.
damn, I was hoping you wouldn't say that ;-)

> Maybe MA needs to define some special methods to make
> this work, so that the objects are pickled without these
> attributes and they are restored after being unpickled?
do you mean __getstate__ and __setstate__?

> There may be another solution but it will take more
> effort to develop.
I've got a vague idea for another solution that uses the 
.im_func attribute of methods.  I'll toy with it this 
afternoon and see if I can get it working.

Tavis




More information about the Numpy-discussion mailing list