#NEWLINE# def _union( self , o ) : #NEWLINE# #INDENT# ' Returns the union of self and o\n        for use with sympy.sets.Set, if possible. ' #NEWLINE# from sympy.sets import Union , FiniteSet #NEWLINE# if o . is_FiniteSet : #NEWLINE# #INDENT# other_points = [ p for p in p if ( not self . _contains ( p ) ) ] #NEWLINE# if ( len ( other_points ) == len ( o ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return Union ( self , FiniteSet ( * other_points ) ) #NEWLINE# #UNINDENT# if self . _contains ( o ) : #NEWLINE# #INDENT# return self #NEWLINE# #UNINDENT# return None