Is there a unique method in python to unique a list?

Chris Angelico rosuav at gmail.com
Sun Sep 9 01:48:35 EDT 2012


On Sun, Sep 9, 2012 at 3:43 PM, Token Type <typetoken at gmail.com> wrote:
> Is there a unique method in python to unique a list? thanks

I don't believe there's a method for that, but if you don't care about
order, try turning your list into a set and then back into a list.

ChrisA



More information about the Python-list mailing list