##// END OF EJS Templates
baseset: make `_set` a property cache...
Pierre-Yves David -
r22879:efe50621 default
parent child Browse files
Show More
@@ -2313,10 +2313,13 b' class baseset(abstractsmartset):'
2313 2313 if not isinstance(data, list):
2314 2314 data = list(data)
2315 2315 self._list = data
2316 self._set = None
2317 2316 self._ascending = None
2318 2317
2319 2318 @util.propertycache
2319 def _set(self):
2320 return set(self._list)
2321
2322 @util.propertycache
2320 2323 def _asclist(self):
2321 2324 asclist = self._list[:]
2322 2325 asclist.sort()
General Comments 0
You need to be logged in to leave comments. Login now