def __setstate__(self, state): self.__dict__, code = state try: self.func = load_func(code) except Exception: print 'load failed', self.__class__, code raise
def __setstate__(self, state): add, self.zero = state self.addInPlace = load_func(add)
def __setstate__(self, state): self.__dict__, code = state self.func = load_func(code)
def __setstate__(self, state): c1, c2, c3 = state self.createCombiner = load_func(c1) self.mergeValue = load_func(c2) self.mergeCombiners = load_func(c3)