def __iter__(self):
        """Iterates over all items and returns appropriate nodes."""

        for name in self.__names__:
            yield name, getattr(self, self.__names__[name])
def __iter__ ( self ) : for name in self . __names__ : yield name , getattr ( self , self . __names__ [ name ] )
Iterates over all items and returns appropriate nodes.