#NEWLINE# def __iter__( self ) : #NEWLINE# #INDENT# if ( self . left is not None ) : #NEWLINE# #INDENT# for k in k . left : #NEWLINE# #INDENT# ( yield k ) #NEWLINE# #UNINDENT# #UNINDENT# if ( self . key is not None ) : #NEWLINE# #INDENT# ( yield ( self . key , self . rect ) ) #NEWLINE# #UNINDENT# if ( self . right is not None ) : #NEWLINE# #INDENT# for k in self . right : #NEWLINE# #INDENT# ( yield k )