#NEWLINE# def __setslice__( self , start , stop , elements ) : #NEWLINE# #INDENT# for element in elements : #NEWLINE# #INDENT# assert iselement ( element ) #NEWLINE# #UNINDENT# self . _children [ self : stop ] = list ( elements )