Next / Previous / Contents / Shipman's homepage

22.1. YearRow.__init__(): Constructor

The constructor has little to do: save the year number, and set up an empty __monthMap.

noteweb
# - - -   Y e a r R o w . _ _ i n i t _ _

    def __init__ ( self, yearCollection, txny, yyyy ):
        '''Constructor
        '''
        self.yearCollection  =  yearCollection
        self.txny  =  txny
        self.yyyy  =  yyyy
        self.__monthMap  =  {}