Next / Previous / Contents / Shipman's homepage

15.7. Hier.keyLen(): Find the key length for a given depth

This pass-through procedure avoids violating the Law of Demeter.

nomcompile3
# - - -   H i e r . k e y L e n

    def keyLen ( self, depth ):
        '''What's the key length for a rank of a given depth?
        '''
        return self.__rankList[depth].keyLen