#NEWLINE# def lset( self , key , index , value ) : #NEWLINE# #INDENT# '\n        @param key Redis key\n        @param index index of element\n        @param value new value of element at index\n\n        Set the list element at index (see LINDEX for information about the\n        index argument) with the new value. Out of range indexes will\n        generate an error. Note that setting the first or last elements of\n        the list is O(1).\n        Similarly to other list commands accepting indexes, the index can\n        be negative to access elements starting from the end of the list.\n        So -1 is the last element, -2 is the penultimate, and so forth.\n\n        @note Time complexity: O(N) (with N being the length of the list)\n        ' #NEWLINE# self . _send ( 'LSET' , key , index , self ) #NEWLINE# return self . getResponse ( )