Message277577
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. |
|
Date |
User |
Action |
Args |
2016-09-28 03:01:58 | belopolsky | set | recipients:
+ belopolsky, rhettinger, serhiy.storchaka, xiang.zhang, jiangping.li |
2016-09-28 03:01:58 | belopolsky | set | messageid: <1475031718.56.0.220203946513.issue28292@psf.upfronthosting.co.za> |
2016-09-28 03:01:58 | belopolsky | link | issue28292 messages |
2016-09-28 03:01:57 | belopolsky | create | |
|