What is the best way to write a __getstate__ method that pickles almost all of an object\'s attributes, but excludes a few?
__getstate__
I have an object wi
You could always just remove the bad items:
def __getstate__(self): state = self.__dict__ del state[...] return state