def __setstate__(self, state): self.__dict__ = state self.rowCache = weakref.WeakValueDictionary() self._populate()