def get_month_namedays ( self , month = None ) : if month is None : month = datetime . now ( ) . month return self . NAMEDAYS [ month - 1 ]
python get name for a month
Return names as a tuple based on given month . If no month given use current one
def get_month_namedays(self, month=None):
        """Return names as a tuple based on given month.
        If no month given, use current one"""
        if month is None:
            month = datetime.now().month
        return self.NAMEDAYS[month-1]