Next / Previous / Contents / Shipman's homepage

9.6. Taxon.__iter__()

Returns an iterator that visits the child taxa of self.

xnomo3.py
# - - -   T a x o n . _ _ i t e r _ _   - - -

    def __iter__ ( self ):
        """Iterates over the child taxa of self.
        """
        for  child in self.__childList:
            yield child