Next / Previous / Contents / Shipman's homepage

15.4. Hier.__contains__(): Is a given code in this hierarchy?

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

    def __contains__ ( self, c ):
        '''Does self has rank code c?  Implements the 'in' operator.
        '''
        return c in self.__rankMap