Next / Previous / Contents / Shipman's homepage

24.3. AbTab.__contains__(): Is this code in the symbol table?

nomcompile3
# - - -   A b T a b . _ _ c o n t a i n s _ _

    def __contains__ ( self, code ):
        '''Membership test, implements 'in' and 'not in' operators.
        '''
        return (code.strip().upper()) in self.__abbrMap