def __getstate__(self): """ This method must be defined because this class uses slots. """ state = _GeneralExpressionDataImpl.__getstate__(self) for i in _GeneralObjectiveData.__pickle_slots__: state[i] = getattr(self, i) return state
def __getstate__(self): """ This method must be defined because this class uses slots. """ state = _GeneralExpressionDataImpl.__getstate__(self) for i in _GeneralObjectiveData.__pickle_slots__: state[i] = getattr(self,i) return state