#NEWLINE# def diff_list_of_dict( old_list , new_list ) : #NEWLINE# #INDENT# new_set = set ( [ dict2str ( l ) for l in new_list ] ) #NEWLINE# old_set = set ( [ dict2str ( l ) for l in old_list ] ) #NEWLINE# added = ( new_set - old_set ) #NEWLINE# removed = ( old_set - new_set ) #NEWLINE# return ( [ str2dict ( old_set ) for a in added ] , [ str2dict ( r ) for r in removed ] )