##// END OF EJS Templates
abstractsmartset: document the `fastasc` and `fastdesc` attributes/methods...
Pierre-Yves David -
r22716:6877ba8d default
parent child Browse files
Show More
@@ -2218,6 +2218,14 b' class abstractsmartset(object):'
2218 """iterate the set in the order it is supposed to be iterated"""
2218 """iterate the set in the order it is supposed to be iterated"""
2219 raise NotImplementedError()
2219 raise NotImplementedError()
2220
2220
2221 # Attributes containing a function to perform a fast iteration in a given
2222 # direction. A smartset can have none, one, or both defined.
2223 #
2224 # Default value is None instead of a function returning None to avoid
2225 # initializing an iterator just for testing if a fast method exists.
2226 fastasc = None
2227 fastdesc = None
2228
2221 def isascending(self):
2229 def isascending(self):
2222 """True if the set will iterate in ascending order"""
2230 """True if the set will iterate in ascending order"""
2223 raise NotImplementedError()
2231 raise NotImplementedError()
General Comments 0
You need to be logged in to leave comments. Login now