def __eq__(self, other):
try:<EOL><INDENT>return (self.write() == other.write())<EOL><DEDENT>except AttributeError:<EOL><INDENT>return False<EOL><DEDENT>
Two Ogg pages are the same if they write the same data.