Next / Previous / Contents / Shipman's homepage

24.2. AbTab.__getitem__(): Find the symbol table entry for a given code

The code passed in is stripped and uppercased to provide a case-insensitive match.

nomcompile3
# - - -   A b T a b . _ _ g e t i t e m _ _

    def __getitem__ ( self, code ):
        '''Find a code, if there is one.
        '''
        return self.__abbrMap [ code.strip().upper() ]