Removing duplicates from a list
martijn at gamecreators.nl
martijn at gamecreators.nl
Wed Sep 14 10:00:15 EDT 2005
I do this:
def unique(keys):
unique = []
for i in keys:
if i not in unique:unique.append(i)
return unique
I don't know what is faster at the moment.
More information about the Python-list
mailing list