Next / Previous / Contents / TCC Help System / NM Tech homepage

49.3. EffortKey.__str__()

cbchistlib.py
# - - -   E f f o r t K e y . _ _ s t r _ _

    def __str__(self):
        '''Render self as a string.
        '''

The intent of this method is to render the effort key in a human-friendly form. There are two different formats:

cbchistlib.py
        #-- 1
        return ('%s-%s' %
                (self.year_no.lstrip('0'),
                 self.year_key.lstrip('0').rstrip()))