Pickle and Instance Methods

S

Steve Potter

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,239
Messages
2,571,200
Members
47,840
Latest member
Tiffany471

Latest Threads

Top