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

Method iterweekdays

Lib/calendar.py:230–236  ·  view source on GitHub ↗

Return an iterator for one week of weekday numbers starting with the configured first one.

(self)

Source from the content-addressed store, hash-verified

228 firstweekday = property(getfirstweekday, setfirstweekday)
229
230 def iterweekdays(self):
231 """
232 Return an iterator for one week of weekday numbers starting with the
233 configured first one.
234 """
235 for i in range(self.firstweekday, self.firstweekday + 7):
236 yield i%7
237
238 def itermonthdates(self, year, month):
239 """

Callers 3

test_iterweekdaysMethod · 0.95
formatweekheaderMethod · 0.80
formatweekheaderMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_iterweekdaysMethod · 0.76