get rid of duplicate elements in list without set

Scott David Daniels Scott.Daniels at Acm.Org
Fri Mar 20 18:06:05 CET 2009


Alexzive wrote:
> I'd like to get the same result of set() but getting an indexable
> object.  How to get this in an efficient way?

Go look at Ray Hettinger's recently announced recipe for 'OrderedSet':

     http://code.activestate.com/recipes/576694/


--Scott David Daniels
Scott,Daniels at Acm.Org



More information about the Python-list mailing list