'String representation of the current port settings and its state.'

def __repr__(self):

    return '{name}<id=0x{id:x},    open={p.is_open}>(port={p.portstr!r},    baudrate={p.baudrate!r},    bytesize={p.bytesize!r},    parity={p.parity!r},    stopbits={p.stopbits!r},    timeout={p.timeout!r},    xonxoff={p.xonxoff!r},    rtscts={p.rtscts!r},    dsrdtr={p.dsrdtr!r})'.format(name=self.__class__.__name__, id=id(self), p=self)
