possible bug: pickling MaskedArrays with the latest cvs version of MA

Hi, I'm having difficulty pickling with the new implementation of activeattributes in the cvs version of MA. With the standard pickle module I get the this traceback:
With the cPickle module I'm getting:
This is with python 2.1b1 and the latest cvs version of Numeric. Has anyone else had this problem? Tavis

I don't know if this will help but the change is that each instance stores some (unbound) method objects. In the previous release these were stored in the class object but it turns out that isn't right wrt inheritance. I haven't much experience with pickling but I will try adding a pickle test to my test suite and see if I can figure this out. -----Original Message----- From: numpy-discussion-admin@lists.sourceforge.net [mailto:numpy-discussion-admin@lists.sourceforge.net]On Behalf Of Tavis Rudd Sent: Friday, March 23, 2001 7:28 PM To: numpy-discussion@lists.sourceforge.net Subject: [Numpy-discussion] possible bug: pickling MaskedArrays with the latest cvs version of MA Hi, I'm having difficulty pickling with the new implementation of activeattributes in the cvs version of MA. With the standard pickle module I get the this traceback:
With the cPickle module I'm getting:
This is with python 2.1b1 and the latest cvs version of Numeric. Has anyone else had this problem? Tavis _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/numpy-discussion

I don't know if this will help but the change is that each instance stores some (unbound) method objects. In the previous release these were stored in the class object but it turns out that isn't right wrt inheritance. I haven't much experience with pickling but I will try adding a pickle test to my test suite and see if I can figure this out. -----Original Message----- From: numpy-discussion-admin@lists.sourceforge.net [mailto:numpy-discussion-admin@lists.sourceforge.net]On Behalf Of Tavis Rudd Sent: Friday, March 23, 2001 7:28 PM To: numpy-discussion@lists.sourceforge.net Subject: [Numpy-discussion] possible bug: pickling MaskedArrays with the latest cvs version of MA Hi, I'm having difficulty pickling with the new implementation of activeattributes in the cvs version of MA. With the standard pickle module I get the this traceback:
With the cPickle module I'm getting:
This is with python 2.1b1 and the latest cvs version of Numeric. Has anyone else had this problem? Tavis _______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/numpy-discussion
participants (2)
-
Paul F. Dubois
-
Tavis Rudd