#NEWLINE# def checkLoop( self , over ) : #NEWLINE# #INDENT# 'Check if attachment to over param would create loop\n        ' #NEWLINE# frame = over #NEWLINE# while frame : #NEWLINE# #INDENT# if ( frame is self ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# frame = frame . over #NEWLINE# #UNINDENT# #UNINDENT# return False