def __eq__(self, other):
    if not other:
      return False

    if id(self) == id(other):
      return True

    for k in self.keys().union(other.keys()):
      # use __getitem__ which returns "" for missing columns values
      if self[k] != other[k]:
        return False
    return True
Return true iff self and other are equivalent
dataset/ETHPy150Open google/transitfeed/transitfeed/gtfsobjectbase.py/GtfsObjectBase.__eq__