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, jiangping.li, rhettinger, serhiy.storchaka, xiang.zhang
Date 2016-09-26.16:54:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474908886.74.0.317429794994.issue28253@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-09-26 16:54:46belopolskysetrecipients: + belopolsky, rhettinger, serhiy.storchaka, xiang.zhang, jiangping.li
2016-09-26 16:54:46belopolskysetmessageid: <1474908886.74.0.317429794994.issue28253@psf.upfronthosting.co.za>
2016-09-26 16:54:46belopolskylinkissue28253 messages
2016-09-26 16:54:46belopolskycreate