Next / Previous / Contents / Shipman's homepage

9.7. Taxon.__len__()

Same as .nChildren().

xnomo3.py
# - - -   T a x o n . _ _ l e n _ _   - - -

    def __len__ ( self ):
        """Return the number of child taxa of self."""
        return len(self.__childList)