Show More
@@ -2238,6 +2238,9 b' class baseset(list):' | |||||
2238 | def __contains__(self): |
|
2238 | def __contains__(self): | |
2239 | return self.set().__contains__ |
|
2239 | return self.set().__contains__ | |
2240 |
|
2240 | |||
|
2241 | def __nonzero__(self): | |||
|
2242 | return bool(len(self)) | |||
|
2243 | ||||
2241 | def __sub__(self, other): |
|
2244 | def __sub__(self, other): | |
2242 | """Returns a new object with the substraction of the two collections. |
|
2245 | """Returns a new object with the substraction of the two collections. | |
2243 |
|
2246 |
General Comments 0
You need to be logged in to leave comments.
Login now