def __eq__(self, other):
        if type(other) is not type(self):
            result = False
        else:
            result = (self.name == other.name and
                      self.version == other.version and
                      self.source_url == other.source_url)
        return result
See if this distribution is the same as another.
dataset/ETHPy150Open anzev/hedwig/build/pip/pip/_vendor/distlib/database.py/Distribution.__eq__