Return the data for the specified year ready for formatting (similar to yeardatescalendar()). Entries in the week lists are day numbers. Day numbers outside this month are zero.
(self, year, width=3)
| 337 | return [months[i:i+width] for i in range(0, len(months), width) ] |
| 338 | |
| 339 | def yeardayscalendar(self, year, width=3): |
| 340 | """ |
| 341 | Return the data for the specified year ready for formatting (similar to |
| 342 | yeardatescalendar()). Entries in the week lists are day numbers. |
| 343 | Day numbers outside this month are zero. |
| 344 | """ |
| 345 | months = [self.monthdayscalendar(year, m) for m in Month] |
| 346 | return [months[i:i+width] for i in range(0, len(months), width) ] |
| 347 | |
| 348 | |
| 349 | class TextCalendar(Calendar): |