Show More
@@ -2228,22 +2228,10 b' class abstractsmartset(object):' | |||
|
2228 | 2228 | """True if the set will iterate in ascending order""" |
|
2229 | 2229 | raise NotImplementedError() |
|
2230 | 2230 | |
|
2231 | def ascending(self): | |
|
2232 | """Sorts the set in ascending order (in place). | |
|
2233 | ||
|
2234 | This is part of the mandatory API for smartset.""" | |
|
2235 | self.sort() | |
|
2236 | ||
|
2237 | 2231 | def isdescending(self): |
|
2238 | 2232 | """True if the set will iterate in descending order""" |
|
2239 | 2233 | raise NotImplementedError() |
|
2240 | 2234 | |
|
2241 | def descending(self): | |
|
2242 | """Sorts the set in descending order (in place). | |
|
2243 | ||
|
2244 | This is part of the mandatory API for smartset.""" | |
|
2245 | self.sort(reverse=True) | |
|
2246 | ||
|
2247 | 2235 | def min(self): |
|
2248 | 2236 | """return the minimum element in the set""" |
|
2249 | 2237 | if self.fastasc is not None: |
General Comments 0
You need to be logged in to leave comments.
Login now