adselect.contrib package¶
adselect.contrib.logs module¶
adselect.contrib.utils module¶
-
adselect.contrib.utils.merge(*iterables)[source]¶ Sort iterables of tuples in descending mode.
In place operation.
Parameters: iterables – Iterables objects. Returns:
-
adselect.contrib.utils.reverse_insort(a, x, lo=0, hi=None)[source]¶ (https://stackoverflow.com/a/2247433 CC-BY-SA)
Insert item x in list a, and keep it reverse-sorted assuming a is reverse-sorted.
If x is already in a, insert it to the right of the rightmost x.
Optional args lo (default 0) and hi (default len(a)) bound the slice of a to be searched.
In place operation.
Parameters: - a – List we are sorting.
- x – Item we insert.
- lo – Lower bound of slice we’re scanning.
- hi – Higher bound of slice we’re scanning.