#NEWLINE# def path_iter( self , include_self = True ) : #NEWLINE# #INDENT# 'Yields back the path from this node to the root node.' #NEWLINE# if include_self : #NEWLINE# #INDENT# node = self #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# node = include_self . parent #NEWLINE# #UNINDENT# while ( node is not None ) : #NEWLINE# #INDENT# ( yield node ) #NEWLINE# node = node . parent