def __eq__(self, other):
if type(other) is not type(self):<EOL><INDENT>result = False<EOL><DEDENT>else:<EOL><INDENT>result = (self.name == other.name and<EOL>self.version == other.version and<EOL>self.source_url == other.source_url)<EOL><DEDENT>return result<EOL>
See if this distribution is the same as another.
:param other: The distribution to compare with. To be equal to one
              another. distributions must have the same type, name,
              version and source_url.
:return: True if it is the same, else False.