(self, mode)
Use in input or output mode.
Use in input or output mode.
Use in input or output mode .
def use_mode(self, mode):
        """Use in input or output mode."""
        self._switch_mode(mode)
        yield
        self._check_overflow()
def use_mode ( self , mode ) : self . _switch_mode ( mode ) yield self . _check_overflow ( )