Module pstats :: Class TupleComp
[hide private]
[frames] | no frames]

_ClassType TupleComp

This class provides a generic function for comparing any two tuples. Each instance records a list of tuple-indices (from most significant to least significant), and sort direction (ascending or decending) for each tuple-index. The compare functions can then be used as the function argument to the system sort() function when a list of tuples need to be sorted in the instances order.

Instance Methods [hide private]
__init__(self, comp_select_list)
compare(self, left, right)