Alexander Belopolsky added the comment:
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.
----------
nosy: +belopolsky
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28253>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com