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

Method itermonthdays4

Lib/calendar.py:285–291  ·  view source on GitHub ↗

Like itermonthdates(), but will yield (year, month, day, day_of_week) tuples. Can be used for dates outside of datetime.date range.

(self, year, month)

Source from the content-addressed store, hash-verified

283 yield y, m, d
284
285 def itermonthdays4(self, year, month):
286 """
287 Like itermonthdates(), but will yield (year, month, day, day_of_week) tuples.
288 Can be used for dates outside of datetime.date range.
289 """
290 for i, (y, m, d) in enumerate(self.itermonthdays3(year, month)):
291 yield y, m, d, (self.firstweekday + i) % 7
292
293 def monthdatescalendar(self, year, month):
294 """

Callers 1

test_itermonthdays4Method · 0.95

Calls 2

itermonthdays3Method · 0.95
enumerateFunction · 0.85

Tested by 1

test_itermonthdays4Method · 0.76