Message277433
I would leave itermonthdates() alone and just fix itermonthdays2() (and itermonthdays() for consistency) as Xiang suggested. The fix can be implemented by breaking on date.month != month and adding something like
for wd in range(date.weekday(), 7):
yield (0, wd)
after the existing for loop. |
|
Date |
User |
Action |
Args |
2016-09-26 16:54:46 | belopolsky | set | recipients:
+ belopolsky, rhettinger, serhiy.storchaka, xiang.zhang, jiangping.li |
2016-09-26 16:54:46 | belopolsky | set | messageid: <1474908886.74.0.317429794994.issue28253@psf.upfronthosting.co.za> |
2016-09-26 16:54:46 | belopolsky | link | issue28253 messages |
2016-09-26 16:54:46 | belopolsky | create | |
|