##// END OF EJS Templates
lazyset: split the iteration logic from the condition filtering logic...
Pierre-Yves David -
r22719:21fda9dc default
parent child Browse files
Show More
@@ -2436,8 +2436,11 b' class lazyset(abstractsmartset):'
2436 return c[x]
2436 return c[x]
2437
2437
2438 def __iter__(self):
2438 def __iter__(self):
2439 return self._iterfilter(self._subset)
2440
2441 def _iterfilter(self, it):
2439 cond = self._condition
2442 cond = self._condition
2440 for x in self._subset:
2443 for x in it:
2441 if cond(x):
2444 if cond(x):
2442 yield x
2445 yield x
2443
2446
General Comments 0
You need to be logged in to leave comments. Login now