#NEWLINE# def symmetric_difference_update( self , other ) : #NEWLINE# #INDENT# ( want , have ) = ( self . symmetric_difference ( value ) , set ( self ) ) #NEWLINE# ( remove , add ) = ( ( have - want ) , ( want - have ) ) #NEWLINE# for value in remove : #NEWLINE# #INDENT# self . remove ( value ) #NEWLINE# #UNINDENT# for value in add : #NEWLINE# #INDENT# self . add ( value )