def __cmp__(self, other):
        """

        @param other: another L{RemoteReference} to compare me to.
        """
        if isinstance(other, RemoteReference):
            if other.broker == self.broker:
                return cmp(self.luid, other.luid)
        return cmp(self.broker, other)


        @param other: another L{RemoteReference} to compare me to.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/pb.py