def __str__(self):
        """Mambu object str gives a string representation of the attrs attribute."""
        try:
            return self.__class__.__name__ + " - " + str(self.attrs)
        except AttributeError:
            return repr(self)
def __str__ ( self ) : try : return self . __class__ . __name__ + " - " + str ( self . attrs ) except AttributeError : return repr ( self )
Mambu object str gives a string representation of the attrs attribute.