***
Your mail has been scanned by InterScan MSS.
***
On Saturday 21 October 2006 19:09, Steven D'Aprano wrote:
> So for searches that succeed, dicts are much faster than lists.
Very precious advice. Thank you, indeed. The lesson was good :-)
I'd only lik
Fulvio schrieb:
>
> Is there some trick to apply the best search in wise use of resources while
> using the above said methods?
>
measure it:
http://docs.python.org/lib/module-timeit.html
Regarding your debugger question in the seperate thread I don't know
since I am not using a debugger at a
On Sat, 21 Oct 2006 17:41:04 +0800, Fulvio wrote:
> 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
Let's find out.
Searches that succeed:
>>> import tim
***
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 t