(self, timeout)
return bool(rl)
indicates whether the stream has data to read (within *timeout* 
        seconds)
indicates whether the stream has data to read (within *timeout* 
        seconds)
indicates whether the stream has data to read ( within * timeout * seconds )
def poll(self, timeout):
        """indicates whether the stream has data to read (within *timeout* 
        seconds)"""
        try:
            while True:
                try:
                    rl, _, _ = select([self], [], [], timeout)
                except select_error as ex:
                    if ex[0] == errno.EINTR:
                        continue
                    else:
                        raise
                else:
                    break
        except ValueError as ex:
            # i get this some times: "ValueError: file descriptor cannot be a negative integer (-1)"
            # let's translate it to select.error
            raise select_error(str(ex))
        return bool(rl)
def poll ( self , timeout ) : try : while True : try : rl , _ , _ = select ( [ self ] , [ ] , [ ] , timeout ) except select_error as ex : if ex [ 0 ] == errno . EINTR : continue else : raise else : break except ValueError as ex : # i get this some times: "ValueError: file descriptor cannot be a negative integer (-1)" # let's translate it to select.error raise select_error ( str ( ex ) ) return bool ( rl )