(x)
return "".join(s)
Display an inspection report of the Component or Manager x

    :param x: A Component or Manager to graph
    :type  x: Component or Manager

    @return: A detailed inspection report of x
    @rtype:  str
Display an inspection report of the Component or Manager x
Display an inspection report of the Component or Manager x
def inspect(x):
    """Display an inspection report of the Component or Manager x

    :param x: A Component or Manager to graph
    :type  x: Component or Manager

    @return: A detailed inspection report of x
    @rtype:  str
    """

    s = []
    write = s.append

    write(" Components: %d\n" % len(x.components))
    for component in x.components:
        write("  %s\n" % component)
    write("\n")

    from circuits import reprhandler

    write(" Event Handlers: %d\n" % len(x._handlers.values()))
    for event, handlers in x._handlers.items():
        write("  %s; %d\n" % (event, len(x._handlers[event])))
        for handler in x._handlers[event]:
            write("   %s\n" % reprhandler(handler))

    return "".join(s)
def inspect ( x ) : s = [ ] write = s . append write ( " Components: %d\n" % len ( x . components ) ) for component in x . components : write ( "  %s\n" % component ) write ( "\n" ) from circuits import reprhandler write ( " Event Handlers: %d\n" % len ( x . _handlers . values ( ) ) ) for event , handlers in x . _handlers . items ( ) : write ( "  %s; %d\n" % ( event , len ( x . _handlers [ event ] ) ) ) for handler in x . _handlers [ event ] : write ( "   %s\n" % reprhandler ( handler ) ) return "" . join ( s )