Python bisect Functions
EditRocket provides the following information on bisect functions in the Python source code builder.
bisect_left(list, item[, lo[, hi]]) - Locate the proper insertion point for item in list to maintain sorted order.
bisect_right(list, item[, lo[, hi]]) - Similar to bisect_left(), but returns an insertion point which comes after (to the right of) any existing entries of item in list.
insort_left(list, item[, lo[, hi]]) - Insert item in list in sorted order.
insort_right(list, item[, lo[, hi]]) - Similar to insort_left(), but inserting item in list after any existing entries of item.