def __repr__(self):
try:<EOL><INDENT>return self.__class__.__name__ + "<STR_LIT>" % self.attrs['<STR_LIT:id>']<EOL><DEDENT>except KeyError:<EOL><INDENT>return self.__class__.__name__ + "<STR_LIT>"<EOL><DEDENT>except AttributeError:<EOL><INDENT>return self.__class__.__name__ + "<STR_LIT>" % self.entid<EOL><DEDENT>except TypeError:<EOL><INDENT>return self.__class__.__name__ + "<STR_LIT>" % len(self.attrs)<EOL><DEDENT>
Mambu object repr tells the class name and the usual 'id' for it.

        If an iterable, it instead gives its length.