Next / Previous / Contents / Shipman's homepage

4.7. Txny.abbrToEng()

This method uppercases its argument and looks it up in the self.__abbrEng dictionary.

txny.py
# - - -   T x n y . a b b r T o E n g   - - -

    def abbrToEng ( self, abbr ):
        """Lookup the English name corresponding to abbr.
        """
        return self.__abbrEng [ abbr.upper().ljust(ABBR_L) ]