Next / Previous / Contents / Shipman's homepage

18.8. TaxaTree.__contains__(): Membership test for a scientific name

nomcompile3
# - - -   T a x a T r e e . _ _ c o n t a i n s _ _

    def __contains__ ( self, sci ):
        '''Is this scientific name in the tree?
        '''
        return sci in self.__sciMap