def brpoplpush(self, sourcekey, destkey, timeout=0, encoding=_NOTSET):
        """Remove and get the last element in a list, or block until one
        is available.

        :raises TypeError: if timeout is not int
        :raises ValueError: if timeout is less than 0
        """
        if not isinstance(timeout, int):
            raise TypeError("timeout argument must be int")
        if timeout < 0:
            raise ValueError("timeout must be greater equal 0")
        return self.execute(b'BRPOPLPUSH', sourcekey, destkey, timeout,
                            encoding=encoding)
def brpoplpush ( self , sourcekey , destkey , timeout = 0 , encoding = _NOTSET ) : if not isinstance ( timeout , int ) : raise TypeError ( "timeout argument must be int" ) if timeout < 0 : raise ValueError ( "timeout must be greater equal 0" ) return self . execute ( b'BRPOPLPUSH' , sourcekey , destkey , timeout , encoding = encoding )
Remove and get the last element in a list, or block until one
        is available.

        :raises TypeError: if timeout is not int
        :raises ValueError: if timeout is less than 0