On 16.11.12 15:17, Michael Foord wrote: > On 16 November 2012 12:39, Paul Moore > <p.f.moore at gmail.com > <mailto:p.f.moore at gmail.com>> wrote: > list(set(ls)) > > > This loses order. list(collections.OrderedDict.fromkeys(ls))