I have a list of objects that each have a specific attribute. That attribute is not unique, and I would like to end up with a list of the objects that is a subset of the en
You could create a dict whose key is the object's thing and values are the objects themselves.
d = {} for obj in object_list: d[obj.thing] = obj desired_list = d.values()