MCPcopy Index your code
hub / github.com/RustPython/RustPython / itermonthdays4

Method itermonthdays4

Lib/calendar.py:266–272  ·  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

264 yield y, m, d
265
266 def itermonthdays4(self, year, month):
267 """
268 Like itermonthdates(), but will yield (year, month, day, day_of_week) tuples.
269 Can be used for dates outside of datetime.date range.
270 """
271 for i, (y, m, d) in enumerate(self.itermonthdays3(year, month)):
272 yield y, m, d, (self.firstweekday + i) % 7
273
274 def monthdatescalendar(self, year, month):
275 """

Callers 1

test_itermonthdays4Method · 0.95

Calls 2

itermonthdays3Method · 0.95
enumerateFunction · 0.85

Tested by 1

test_itermonthdays4Method · 0.76