def __eq__(self, other): if isinstance(other, ParamDef): return self.name == other.name and self.dbname == other.dbname else: return Symbol.__eq__(self, other)