def __setstate__(self, state): self.__dict__.update(state) self.text = Pickler.load(self.text)
def __getstate__(self): state = self.__dict__.copy() state['text'] = Pickler.dump(self.text) return state
def __setstate__(self, state): self.__dict__.update(state) self.value = Pickler.load(self.value)
def __getstate__(self): state = self.__dict__.copy() state['value'] = Pickler.dump(self.value) return state