equal
deleted
inserted
replaced
2226 This is part of the mandatory API for smartset.""" |
2226 This is part of the mandatory API for smartset.""" |
2227 if not self._set: |
2227 if not self._set: |
2228 self._set = set(self) |
2228 self._set = set(self) |
2229 return self._set |
2229 return self._set |
2230 |
2230 |
|
2231 @util.propertycache |
|
2232 def __contains__(self): |
|
2233 return self.set().__contains__ |
|
2234 |
2231 def __sub__(self, other): |
2235 def __sub__(self, other): |
2232 """Returns a new object with the substraction of the two collections. |
2236 """Returns a new object with the substraction of the two collections. |
2233 |
2237 |
2234 This is part of the mandatory API for smartset.""" |
2238 This is part of the mandatory API for smartset.""" |
2235 # If we are operating on 2 baseset, do the computation now since all |
2239 # If we are operating on 2 baseset, do the computation now since all |