class Selection.Selection: self.search self.sort def __init__ (self, search = None, sort = None): def iterator (self, iterator):
This class can hold Search and Sort criterions and provide an iterator that follows these restrictions.
The current Tester object.
Changing this attribute won't change the behaviour of iterators that were previously returned by iterator.
The current Sort object.
selection = Selection (search = some_search, sort = some_sorting)
Creates a new Selection filter.
Returns a new iterator that will loop over the elements of the iterator passed as argument, but according to the current filtering.