(self)
return select.select([self], [], [], 0) == ([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."""
        return select.select([self], [], [], 0) == ([self], [], [])
def sock_avail ( self ) : return select . select ( [ self ] , [ ] , [ ] , 0 ) == ( [ self ] , [ ] , [ ] )