(self)
return '<{name} object: {{{state}}}>'.format(
            name=self.__class__.__name__,
            state=", ".join(state),
        )
An un-tested helper for getting state, for debugging.
An un-tested helper for getting state, for debugging.
An un - tested helper for getting state for debugging .
def format_debug(self):
        # type: () -> str
        """An un-tested helper for getting state, for debugging.
        """
        attributes = vars(self)
        names = sorted(attributes)

        state = (
            "{}={!r}".format(attr, attributes[attr]) for attr in sorted(names)
        )
        return '<{name} object: {{{state}}}>'.format(
            name=self.__class__.__name__,
            state=", ".join(state),
        )
def format_debug ( self ) : # type: () -> str attributes = vars ( self ) names = sorted ( attributes ) state = ( "{}={!r}" . format ( attr , attributes [ attr ] ) for attr in sorted ( names ) ) return '<{name} object: {{{state}}}>' . format ( name = self . __class__ . __name__ , state = ", " . join ( state ) , )