calendar.Calendar.itermonthdays2

Calendar.itermonthdays2(year, month)[source]

Like itermonthdates(), but will yield (day number, weekday number) tuples. For days outside the specified month the day number is 0.