Im currently uniquifying a list of objects based on their name attribute by creating a dict of objects with the name value as the dict key like this:
obj_dict = dict()
for obj in obj_list:
if not obj.name in obj_dict:
obj_dict[obj.name] = obj
new_obj_list = obj_dict.items()
And I was wondering if there was a quicker or more pythonic way to do this.