I have a list:
d = [{\'x\':1, \'y\':2}, {\'x\':3, \'y\':4}, {\'x\':1, \'y\':2}]
{\'x\':1, \'y\':2} comes more than once I want
{\'x\':1, \'y\':2}
A simple loop:
tmp=[] for i in d: if i not in tmp: tmp.append(i) tmp [{'x': 1, 'y': 2}, {'x': 3, 'y': 4}]