seen = set()
obj_list = [obj1, obj2, obj3]
new_obj_list = [x for x in obj_list if x.my_attr not in seen and not seen.
    add(x.my_attr)]
Best way of removing duplicates from a list by object attribute