(self, parity)
Change parity setting.
Change parity setting.
Change parity setting .
def parity(self, parity):
        """Change parity setting."""
        if parity not in self.PARITIES:
            raise ValueError("Not a valid parity: {!r}".format(parity))
        self._parity = parity
        if self.is_open:
            self._reconfigure_port()
def parity ( self , parity ) : if parity not in self . PARITIES : raise ValueError ( "Not a valid parity: {!r}" . format ( parity ) ) self . _parity = parity if self . is_open : self . _reconfigure_port ( )