#NEWLINE# def __setslice__( self , start , stop , elements ) : #NEWLINE# #INDENT# "\n        Replaces a number of subelements with elements from a sequence.\n\n        @param start The first subelement to replace.\n        @param stop The first subelement that shouldn't be replaced.\n        @param elements A sequence object with zero or more elements.\n        @exception TypeError If a sequence member is not a valid object.\n        " #NEWLINE# for element in elements : #NEWLINE# #INDENT# _validate_element ( element ) #NEWLINE# element . _adjust_parent_root ( self , self . root ) #NEWLINE# #UNINDENT# self . _children [ elements : stop ] = list ( elements )