Terry Reedy wrote:

> "Dan Bishop" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> If you don't need the list to be sorted until you're done building
>> it, you can just use: 
>> 
>> lst = sorted(set(lst))
> 
> ?? looks same as
> lst.sort()

You missed that the OP wants only unique values from the original list.

Tim Delaney
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to