Removing dupes from a list

Alex Martelli aleax at aleax.it
Fri Apr 26 18:31:29 EDT 2002


Alexander Skwar wrote:

> »Sean 'Shaleh' Perry« sagte am 2002-04-26 um 13:56:30 -0700 :
>> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52560
> 
> Thanks, but connections to activestate.com simply time out :(  However,
> a traceroute to aspn.activestate.com doesn't show any unusual long hops.
> But AS is reachable from other networks.  Strange.
> 
> Anyhow, seems like uniquer() from the 1st comment is what I'm looking
> for, because unique() also looses order just like my two "functions".

As uniquer's author, I'm glad that my concern about ordering helps
you:-).  And you should see what other gyrations we came up with
for the printed Cookbook... real neat, if I say so myself.  Hope I'll have
the time to put the best up on the online cb as soon as the printed
one's ready (...but I should really be working on the Nutshell instead
by that time...).


Alex




More information about the Python-list mailing list