#NEWLINE# def __contains__( self , shape ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return shape . in_sphere ( shape ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# raise TypeError ( ( "No 'in_sphere' method supplied by %s" % type ( shape ) ) )