##// END OF EJS Templates
generatorset: implement __nonzero__...
Pierre-Yves David -
r22739:4ed47a1b default
parent child Browse files
Show More
@@ -2741,6 +2741,11 b' class _generatorset(object):'
2741 2741 self._genlist = baseset([])
2742 2742 self._finished = False
2743 2743
2744 def __nonzero__(self):
2745 for r in self:
2746 return True
2747 return False
2748
2744 2749 def __contains__(self, x):
2745 2750 if x in self._cache:
2746 2751 return self._cache[x]
General Comments 0
You need to be logged in to leave comments. Login now