Author belopolsky
Recipients belopolsky, jiangping.li, rhettinger, serhiy.storchaka, xiang.zhang
Date 2016-09-28.03:01:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475031718.56.0.220203946513.issue28292@psf.upfronthosting.co.za>
In-reply-to
Content
The Calendar.itermonthdates() method is defined as follows:

"Return an iterator for one month. The iterator will yield datetime.date values and will always iterate through complete weeks, so it will yield dates outside the specified month."

However, for the two months at the extremes of datetime.date range, 0001-01 and 9999-12, the dates outside the specified month may not be representable as datetime.date instances.

The current implementation is inconsistent: itermonthdates(1, 1) may raise an OverflowError (see #26650), while itermonthdates(9999, 12) may yield an incomplete week (see #28253.)

This issue supersedes #26650 and #28253.
History
Date User Action Args
2016-09-28 03:01:58belopolskysetrecipients: + belopolsky, rhettinger, serhiy.storchaka, xiang.zhang, jiangping.li
2016-09-28 03:01:58belopolskysetmessageid: <1475031718.56.0.220203946513.issue28292@psf.upfronthosting.co.za>
2016-09-28 03:01:58belopolskylinkissue28292 messages
2016-09-28 03:01:57belopolskycreate