The intent of this method is to determine whether two
points coincide. The inequality cases are less useful,
but we basically use
the primary sort key and
as the secondary key.
# - - - P t . _ _ c m p _ _ def __cmp__(self, other): '''Compare two points. ''' return cmp(self.xy(), other.xy())