(sock)
return not select([sock],[],[],0)[0]
Detect if socket is empty.
Detect if socket is empty.
Detect if socket is empty .
def msg_empty(sock):
    """Detect if socket is empty."""
    return not select([sock],[],[],0)[0]
def msg_empty ( sock ) : return not select ( [ sock ] , [ ] , [ ] , 0 ) [ 0 ]