fast list lookup

Marco Aschwanden PPNTWIMBXFFC at
Wed Jan 26 10:10:37 EST 2005

>> what is the fastest way to determine whether list l (with
>> len(l)>30000) contains a certain element?

Either a sorted list (in conjunction with the bisect-module) or a  
dictionary is your friend...


More information about the Python-list mailing list