Next / Previous / Contents / Shipman's homepage

6.3. Txny.lookupAbbr()

Retrieves the Taxon for a given bird code, if any. The code is standardized by Section 11.6, “fixAbbr(): Standardize a bird code”.

xnomo3.py
# - - -   T x n y . l o o k u p A b b r   - - -

    def lookupAbbr ( self, abbr ):
        """Look up a taxon by bird code.
        """
        return self.__abbrMap[abbrMod.fixAbbr(abbr)]