(self, keys, timeout=0)
return self.execute_command('BRPOP', *keys)
RPOP a value off of the first non-empty list
        named in the ``keys`` list.

        If none of the lists in ``keys`` has a value to LPOP, then block
        for ``timeout`` seconds, or until a value gets pushed on to one
        of the lists.

        If timeout is 0, then block indefinitely.
RPOP a value off of the first non-empty list
        named in the ``keys`` list.
RPOP a value off of the first non - empty list named in the keys list .
def brpop(self, keys, timeout=0):
        """
        RPOP a value off of the first non-empty list
        named in the ``keys`` list.

        If none of the lists in ``keys`` has a value to LPOP, then block
        for ``timeout`` seconds, or until a value gets pushed on to one
        of the lists.

        If timeout is 0, then block indefinitely.
        """
        if timeout is None:
            timeout = 0
        if isinstance(keys, basestring):
            keys = [keys]
        else:
            keys = list(keys)
        keys.append(timeout)
        return self.execute_command('BRPOP', *keys)
def brpop ( self , keys , timeout = 0 ) : if timeout is None : timeout = 0 if isinstance ( keys , basestring ) : keys = [ keys ] else : keys = list ( keys ) keys . append ( timeout ) return self . execute_command ( 'BRPOP' , * keys )