help

David Garamond davegaramond at icqmail.com
Mon Oct 7 05:16:12 EDT 2002


i believe in is pretty much the fastest you can get for linear searches. 
if you have a very large number of items and want to quickly locate an 
item, you might want to use a dictionary.

--
dave

James Whithear wrote:
> I am searching a list for one or the elements in the list and wanted to know
> if there is a faster way then using the IN operator?
> Thanks James
> 
> 





More information about the Python-list mailing list