def __eq__(self, other):
if not isinstance(other, Index):<EOL><INDENT>return NotImplemented<EOL><DEDENT>return (self.kind == other.kind and<EOL>self.properties == other.properties and<EOL>self.ancestor == other.ancestor)<EOL>
Compare two indexes.