Lines Matching refs:bisect
1 :mod:`bisect` --- Array bisection algorithm
4 .. module:: bisect
10 **Source code:** :source:`Lib/bisect.py`
17 approach. The module is called :mod:`bisect` because it uses a basic bisection
38 bisect(a, x, lo=0, hi=len(a))
50 ``a.insert(bisect.bisect_left(a, x, lo, hi), x)`` assuming that *a* is
64 bisect to build a full-featured collection class with straight-forward search
72 The above :func:`bisect` functions are useful for finding insertion points but
118 The :func:`bisect` function can be useful for numeric table lookups. This
119 example uses :func:`bisect` to look up a letter grade for an exam score (say)
124 ... i = bisect(breakpoints, score)
130 Unlike the :func:`sorted` function, it does not make sense for the :func:`bisect`
132 inefficient design (successive calls to bisect functions would not "remember"