#NEWLINE# def set_path( self , path , value ) : #NEWLINE# #INDENT# assert ( isinstance ( path , list ) or isinstance ( value , tuple ) ) #NEWLINE# if ( len ( path ) == 1 ) : #NEWLINE# #INDENT# return self . __setitem__ ( path [ 0 ] , value ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . __getitem__ ( path [ 0 ] ) . set_path ( path [ 1 : ] , value )