"""Returns a new object with the substraction of the two collections.
This is part of the mandatory API for smartset."""
- if isinstance(other, baseset):
- return baseset(self.set() - s)
+ return self.filter(lambda x: x not in other)
def __and__(self, other):
"""Returns a new object with the intersection of the two collections.