def pack_command(self, *args):
        "Pack a series of arguments into a value Redis command"
        args_output = SYM_EMPTY.join([
            SYM_EMPTY.join(
                (SYM_DOLLAR, str(len(k)).encode(), SYM_CRLF, k, SYM_CRLF))
            for k in imap(self.encoder.encode, args)])
        output = SYM_EMPTY.join(
            (SYM_STAR, str(len(args)).encode(), SYM_CRLF, args_output))
        return output
def pack_command ( self , * args ) : args_output = SYM_EMPTY . join ( [ SYM_EMPTY . join ( ( SYM_DOLLAR , str ( len ( k ) ) . encode ( ) , SYM_CRLF , k , SYM_CRLF ) ) for k in imap ( self . encoder . encode , args ) ] ) output = SYM_EMPTY . join ( ( SYM_STAR , str ( len ( args ) ) . encode ( ) , SYM_CRLF , args_output ) ) return output
Pack a series of arguments into a value Redis command