Jeremy Sanders wrote:
Chaz Ginger wrote:

  
What would sets do for me over lists?
    

It's faster to tell whether something is in a set or dict than in a list
(for some minimum size).

Jeremy

  
That is surprising since I read on this list recently that lists were faster than dicts and that variables stored in lists were faster referenced/used. It was one reason that was cited as to why local vars are better than global vars. The guy actually did a looping test and timed it to show the speed difference.

Can anybody please step in and correct us?

-h

Hari Sekhon
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to