Creating unique list of objects from multiple lists
问题 I have defined a custom object with multiple fields. For example say I have a Student object, which consists of a name, ID, and age. To compare two students and determine whether they are the same student or not, I implemented a __ eq__ method that will return whether the age, name, and ID of the two students match up. def __eq__(self, other): return self.name == other.name and self.ID == other.ID and self.age == other.age Bear in mind that the student is just an example, so the fact that