Show More
@@ -2342,7 +2342,8 b' class lazyset(object):' | |||||
2342 | def __contains__(self, x): |
|
2342 | def __contains__(self, x): | |
2343 | c = self._cache |
|
2343 | c = self._cache | |
2344 | if x not in c: |
|
2344 | if x not in c: | |
2345 | c[x] = x in self._subset and self._condition(x) |
|
2345 | v = c[x] = x in self._subset and self._condition(x) | |
|
2346 | return v | |||
2346 | return c[x] |
|
2347 | return c[x] | |
2347 |
|
2348 | |||
2348 | def __iter__(self): |
|
2349 | def __iter__(self): |
General Comments 0
You need to be logged in to leave comments.
Login now