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