def __eq__(self, other):
if not isinstance(other, Message):<EOL><INDENT>return False<EOL><DEDENT>if self.type() != other.type():<EOL><INDENT>return False<EOL><DEDENT>if self._dict != other._dict:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Compare two message instances. This with another instance.

:param other:  The other instance
:return: True/False