(self, block=False, timeout=None)
return msg
Return a message from the queue. Example:
    
        >>> queue.get()
        'my message'
        >>> queue.get()
        'another message'
        
        :param block: whether or not to wait until a msg is available in
            the queue before returning; ``False`` by default
        :param timeout: when using :attr:`block`, if no msg is available
            for :attr:`timeout` in seconds, give up and return ``None``
Return a message from the queue. Example:
    
        >>> queue.get()
        'my message'
        >>> queue.get()
        'another message'
        
        :param block: whether or not to wait until a msg is available in
            the queue before returning; ``False`` by default
        :param timeout: when using :attr:`block`, if no msg is available
            for :attr:`timeout` in seconds, give up and return ``None``
Return a message from the queue . Example : >>> queue . get () my message >>> queue . get () another message : param block : whether or not to wait until a msg is available in the queue before returning ; False by default : param timeout : when using : attr : block if no msg is available for : attr : timeout in seconds give up and return None
def get(self, block=False, timeout=None):
        """Return a message from the queue. Example:
    
        >>> queue.get()
        'my message'
        >>> queue.get()
        'another message'
        
        :param block: whether or not to wait until a msg is available in
            the queue before returning; ``False`` by default
        :param timeout: when using :attr:`block`, if no msg is available
            for :attr:`timeout` in seconds, give up and return ``None``
        """
        if block:
            if timeout is None:
                timeout = 0
            msg = self.__redis.blpop(self.key, timeout=timeout)
            if msg is not None:
                msg = msg[1]
        else:
            msg = self.__redis.lpop(self.key)
        if msg is not None and self.serializer is not None:
            msg = self.serializer.loads(msg)
        return msg
def get ( self , block = False , timeout = None ) : if block : if timeout is None : timeout = 0 msg = self . __redis . blpop ( self . key , timeout = timeout ) if msg is not None : msg = msg [ 1 ] else : msg = self . __redis . lpop ( self . key ) if msg is not None and self . serializer is not None : msg = self . serializer . loads ( msg ) return msg