def __repr__(self):
        """
        A verbose string representation which gives us information about this
        AMP connection.
        """
        if self.innerProtocol is not None:
            innerRepr = ' inner %r' % (self.innerProtocol,)
        else:
            innerRepr = ''
        return '<%s%s at 0x%x>' % (
            self.__class__.__name__, innerRepr, id(self))

        A verbose string representation which gives us information about this
        AMP connection.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/protocols/amp.py