Pickle and Instance Methods

Steve Potter steven.potter at gmail.com
Sat Mar 17 20:44:45 CET 2007


I have a class that I am trying to pickle.   One of the attributes is
used to set a callback e.g.
self.attribute.setCallback(self.callbackfunction).
I understand that this cannot be saved by pickle.
My question is, is there another way of setting a callback that would
agree with pickle?
If not is there some way to make pickle ignore the problem attribute?


Thanks,

Steve




More information about the Python-list mailing list