Method: calendar.Calendar.yeardayscalendar
Calls: 1, Exceptions: 0, Paths: 1Back
Path 1: 1 calls (1.0)
2004 (1)
3 (1)
list (1)
1def yeardayscalendar(self, year, width=3):
2 """
3 Return the data for the specified year ready for formatting (similar to
4 yeardatescalendar()). Entries in the week lists are day numbers.
5 Day numbers outside this month are zero.
6 """
7 months = [
8 self.monthdayscalendar(year, i)
9 for i in range(January, January+12)
10 ]
11 return [months[i:i+width] for i in range(0, len(months), width) ]