Fastest Way To Uniquify a List in Python
>>> values = [3,2,1,3,2] >>> list(set(values)) [1, 2, 3]
Every use-case I have tested this has been by far the fastest way to make a list unique.
(Source: peterbe.com)
-
pynewb posted this