Next / Previous / Contents / Shipman's homepage

21.1. YearCollection.__init__(): Constructor

All the constructor needs is to set up the invariant on the .__yearMap attribute by making it an empty dictionary.

noteweb
# - - -   Y e a r C o l l e c t i o n . _ _ i n i t _ _

    def __init__ ( self ):
        '''Constructor for YearCollection.
        '''
        self.__yearMap  =  {}