'Compare two indexes.'

def __eq__(self, other):

    if (not isinstance(other, Index)):
        return NotImplemented
    return ((self.kind == other.kind) and (self.properties == other.properties) and (self.ancestor == other.ancestor))
