#NEWLINE# def incr_by_float( conn , key , value ) : #NEWLINE# #INDENT# def incrbyfloat( pipe ) : #NEWLINE# #INDENT# current_value = float ( pipe . get ( key ) ) #NEWLINE# new_value = ( current_value + value ) #NEWLINE# if ( new_value == int ( new_value ) ) : #NEWLINE# #INDENT# new_value = int ( new_value ) #NEWLINE# #UNINDENT# pipe . multi ( ) #NEWLINE# pipe . set ( key , new_value ) #NEWLINE# #UNINDENT# conn . transaction ( value , key )