Method: calendar.Calendar.yeardays2calendar
Calls: 5, Exceptions: 0, Paths: 1Back
Path 1: 5 calls (1.0)
2004 (3) 0 (2)
3 (5)
list (5)
1def yeardays2calendar(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
5 (day number, weekday number) tuples. Day numbers outside this month are
6 zero.
7 """
8 months = [
9 self.monthdays2calendar(year, i)
10 for i in range(January, January+12)
11 ]
12 return [months[i:i+width] for i in range(0, len(months), width) ]