get rid of duplicate elements in list without set

Scott David Daniels Scott.Daniels at Acm.Org
Fri Mar 20 13:06:05 EDT 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