def removed(self): base = self.base if self.base.removed: # XXX need to filter this by self._data somehow return set(self._removed) | set(self.base.removed) else: return self._removed
def added(self): base = self.base return set([item for item in self._added if item in base])