return self
def __eq__(self, other):
if set(self.get_windows()) != set(other.get_windows()):
return False
for w in self.get_windows():
After Change
def __eq__(self, other):
self_windows = set([w.tuple_format() for w in self.get_windows()])
other_windows = set([w.tuple_format() for w in other.get_windows()])
if self_windows != other_windows:
return False