How to uniq list of objects in Python, saving order ?
def Test(object):
def __init__(self,p1,p2):
self.p1 = p1
self.p2 = p2
lst = [Test(1,2), Test(2,3), Test(1,2)]
Two object uniq, if
Test1.p1 == Test2.p1 and Test1.p1 == Test2.p2