parameters: (self)
return_statement: return len(lr)
docstring: Return the number of bytes currently in the input buffer.
docstring_summary: Return the number of bytes currently in the input buffer.
docstring_tokens: Return the number of bytes currently in the input buffer .
function: def in_waiting(self):
          """Return the number of bytes currently in the input buffer."""
          if not self.is_open:
              raise portNotOpenError
          # Poll the socket to see if it is ready for reading.
          # If ready, at least one byte will be to read.
          lr, lw, lx = select.select([self._socket], [], [], 0)
          return len(lr)
function_tokens: def in_waiting ( self ) : if not self . is_open : raise portNotOpenError # Poll the socket to see if it is ready for reading. # If ready, at least one byte will be to read. lr , lw , lx = select . select ( [ self . _socket ] , [ ] , [ ] , 0 ) return len ( lr )