Pickle question

Alex not_such_a_brain_after_all at mit.edu
Sat Nov 4 02:01:24 EST 2000


> Except there are certain states in which the object shouldn't be
> pickled.

You could include a __getstate__ method that raises an error when in
those states, or just arranges things so that the offensive bits of
the class don't get pickled.

Alex.

-- 
Speak softly but carry a big carrot.




More information about the Python-list mailing list