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 xiang.zhang
Recipients jiangping.li, rhettinger, serhiy.storchaka, xiang.zhang
Date 2016-09-23.08:28:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474619335.13.0.64587290442.issue28253@psf.upfronthosting.co.za>
In-reply-to
Content
Something like this?

diff -r 15f82b64eee0 Lib/calendar.py
--- a/Lib/calendar.py	Thu Sep 22 17:11:53 2016 -0700
+++ b/Lib/calendar.py	Fri Sep 23 16:27:03 2016 +0800
@@ -181,6 +181,9 @@
                 yield (0, date.weekday())
             else:
                 yield (date.day, date.weekday())
+                if year == 9999 and month == 12 and date.day == 31:
+                    yield (0, 6)
+                    yield (0, 7)
 
     def itermonthdays(self, year, month):
         """

Is there a more elegant way? I considered this but didn't quite like it so abandoned it.
History
Date User Action Args
2016-09-23 08:28:55xiang.zhangsetrecipients: + xiang.zhang, rhettinger, serhiy.storchaka, jiangping.li
2016-09-23 08:28:55xiang.zhangsetmessageid: <1474619335.13.0.64587290442.issue28253@psf.upfronthosting.co.za>
2016-09-23 08:28:55xiang.zhanglinkissue28253 messages
2016-09-23 08:28:54xiang.zhangcreate