Method: calendar.Calendar.monthdayscalendar
Calls: 46, Exceptions: 0, Paths: 1Back
Path 1: 46 calls (1.0)
2004 (14) 1995 (2) 1987 (2) 1988 (2) 1999 (2) 1923 (2) 1960 (2) 1935 (1) 1975 (1) 1945 (1)
12 (13) 2 (13) 4 (11) 1 (1) 3 (1) 5 (1) 6 (1) 7 (1) 8 (1) 9 (1)
list (46)
1def monthdayscalendar(self, year, month):
2 """
3 Return a matrix representing a month's calendar.
4 Each row represents a week; days outside this month are zero.
5 """
6 days = list(self.itermonthdays(year, month))
7 return [ days[i:i+7] for i in range(0, len(days), 7) ]