Home | History | Annotate | Download | only in test

Lines Matching refs:bisect

11 # We must also handle the case that bisect was imported before.
12 if 'bisect' in sys.modules:
13 del sys.modules['bisect']
16 import bisect as py_bisect
20 del sys.modules['bisect']
23 import bisect as c_bisect
212 self.assertEqual(self.module.bisect, self.module.bisect_right)
218 self.assertEqual(self.module.bisect(a=data, x=25, lo=1, hi=3), 2)
323 Example from the Library Reference: Doc/library/bisect.rst
325 The bisect() function is generally useful for categorizing numeric data.
326 This example uses bisect() to look up a letter grade for an exam total
332 >>> from bisect import bisect
334 ... return grades[bisect(breakpoints, total)]