Method: calendar.Calendar.itermonthdays2
Calls: 139, Exceptions: 0, Paths: 1Back
Path 1: 139 calls (1.0)
2004 (74) 2017 (26) 0 (25) 1 (7) 9999 (7)
1 (19) 12 (17) 5 (12) 2 (11) 3 (10) 4 (10) 6 (10) 7 (10) 8 (10) 9 (10)
(0, 5) (123) (0, 6) (123) (0, 0) (118) (0, 1) (117) (0, 3) (112) (0, 4) (112) (0, 2) (111) (1, 2) (29) (2, 3) (29) (3, 4) (29)
1def itermonthdays2(self, year, month):
2 """
3 Like itermonthdates(), but will yield (day number, weekday number)
4 tuples. For days outside the specified month the day number is 0.
5 """
6 for i, d in enumerate(self.itermonthdays(year, month), self.firstweekday):
7 yield d, i % 7