Ye Olde Binary Search

Moshe Zadka moshez at math.huji.ac.il
Fri Mar 31 21:29:28 CEST 2000


On Fri, 31 Mar 2000, Warren Postma wrote:

> Is there a builtin somewhere in Python to do a binary search on a list?

There's the bisect.py module.

--
Moshe Zadka <mzadka at geocities.com>. 
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com





More information about the Python-list mailing list