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

Method yeardays2calendar

Lib/calendar.py:329–337  ·  view source on GitHub ↗

Return the data for the specified year ready for formatting (similar to yeardatescalendar()). Entries in the week lists are (day number, weekday number) tuples. Day numbers outside this month are zero.

(self, year, width=3)

Source from the content-addressed store, hash-verified

327 return [months[i:i+width] for i in range(0, len(months), width) ]
328
329 def yeardays2calendar(self, year, width=3):
330 """
331 Return the data for the specified year ready for formatting (similar to
332 yeardatescalendar()). Entries in the week lists are
333 (day number, weekday number) tuples. Day numbers outside this month are
334 zero.
335 """
336 months = [self.monthdays2calendar(year, m) for m in Month]
337 return [months[i:i+width] for i in range(0, len(months), width) ]
338
339 def yeardayscalendar(self, year, width=3):
340 """

Callers 2

formatyearMethod · 0.80
formatyearMethod · 0.80

Calls 1

monthdays2calendarMethod · 0.95

Tested by

no test coverage detected