def __eq__(self, other):
        """
        Compare two message instances. This with another instance.
        
        :param other:  The other instance
        :return: True/False
        """
        if not isinstance(other, Message):
            return False
        if self.type() != other.type():
            return False

        if self._dict != other._dict:
            return False

        return True
def __eq__ ( self , other ) : if not isinstance ( other , Message ) : return False if self . type ( ) != other . type ( ) : return False if self . _dict != other . _dict : return False return True
Compare two message instances. This with another instance.
        
        :param other:  The other instance
        :return: True/False