(self)
Test whether data is available on the socket.
Test whether data is available on the socket.
Test whether data is available on the socket .
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))
def sock_avail ( self ) : with _TelnetSelector ( ) as selector : selector . register ( self , selectors . EVENT_READ ) return bool ( selector . select ( 0 ) )