Next / Previous / Contents / Shipman's homepage

19.3. Taxon.__getitem__(): Return the (n)th child

nomcompile3
# - - -   T a x o n . _ _ g e t i t e m _ _

    def __getitem__ ( self, k ):
        '''Return the (k)th child, or raise IndexError.
        '''
        return self.__childList[k]