parameters: (self)
docstring: Test whether data is available on the socket.
docstring_summary: Test whether data is available on the socket.
docstring_tokens: Test whether data is available on the socket .
function: def sock_avail(self):
          """Test whether data is available on the socket."""
          with _TelnetSelector() as selector:
              selector.register(self, selectors.EVENT_READ)
              return bool(selector.select(0))
function_tokens: def sock_avail ( self ) : with _TelnetSelector ( ) as selector : selector . register ( self , selectors . EVENT_READ ) return bool ( selector . select ( 0 ) )