(self)
Find out whether bytes are waiting for input or output.
Find out whether bytes are waiting for input or output.
Find out whether bytes are waiting for input or output .
def io_waiting(self):
        """ Find out whether bytes are waiting for input or output. """
        # no idea what the appropriate BASIC error would be
        with safe_io(error.DEVICE_FAULT):
            self._check_open()
            # socketserial has no out_waiting, though Serial does
            return self._serial.in_waiting > 0, self._serial.out_waiting > 0
def io_waiting ( self ) : # no idea what the appropriate BASIC error would be with safe_io ( error . DEVICE_FAULT ) : self . _check_open ( ) # socketserial has no out_waiting, though Serial does return self . _serial . in_waiting > 0 , self . _serial . out_waiting > 0