MCPcopy Index your code
hub / github.com/python/cpython / itermonthdays2

Method itermonthdays2

Lib/calendar.py:259–265  ·  view source on GitHub ↗

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

(self, year, month)

Source from the content-addressed store, hash-verified

257 yield from repeat(0, days_after)
258
259 def itermonthdays2(self, year, month):
260 """
261 Like itermonthdates(), but will yield (day number, weekday number)
262 tuples. For days outside the specified month the day number is 0.
263 """
264 for i, d in enumerate(self.itermonthdays(year, month), self.firstweekday):
265 yield d, i % 7
266
267 def itermonthdays3(self, year, month):
268 """

Callers 2

monthdays2calendarMethod · 0.95
test_itermonthdays2Method · 0.95

Calls 2

itermonthdaysMethod · 0.95
enumerateFunction · 0.85

Tested by 1

test_itermonthdays2Method · 0.76