This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky,, rhettinger, serhiy.storchaka, xiang.zhang
Date 2016-09-26.16:54:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:46belopolskysetrecipients: + belopolsky, rhettinger, serhiy.storchaka, xiang.zhang,
2016-09-26 16:54:46belopolskysetmessageid: <>
2016-09-26 16:54:46belopolskylinkissue28253 messages
2016-09-26 16:54:46belopolskycreate