def __eq__(self, other):
        """Implement '==' operator."""
        return self.name == other.name and self.spec == other.spec
def __eq__ ( self , other ) : return self . name == other . name and self . spec == other . spec
Implement '==' operator.