The fastest search

Fulvio fulvio at tm.net.my
Sat Oct 21 05:41:04 EDT 2006


***********************
Your mail has been scanned by InterScan MSS.
***********************


Hello,

I'm poor in knoweledge of python, sorry. What's the fastest result between :

if item in alist:
         do_something

or

if adictionay has_key(item):
         do_something

Is there some trick to apply the best search in wise use of resources while 
using the above said methods?

F




More information about the Python-list mailing list