Next / Previous / Contents / Shipman's homepage

15.8. Hier.txKeyFill(): Right-zero-pad a taxonomic key

nomcompile3
# - - -   H i e r . t x K e y F i l l

    def txKeyFill ( self, shortKey ):
        '''Right-zero-fill a short taxonomic key.
        '''
        return shortKey.ljust ( self.txKeyLen, '0' )