]> granicus.if.org Git - python/commit
Issue #28253: Fixed calendar functions for extreme months: 0001-01 and 9999-12.
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Wed, 28 Sep 2016 00:26:39 +0000 (20:26 -0400)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Wed, 28 Sep 2016 00:26:39 +0000 (20:26 -0400)
commit957b75699fd1ed2eb18e8f7fa6fee1062fabad68
treeb296f1891dcb88d20fcb0f6f75f80955658ba264
parent4cefe74aef34a86a9eb60cea9d7a775fc288004c
Issue #28253: Fixed calendar functions for extreme months: 0001-01 and 9999-12.

Methods itermonthdays() and itermonthdays2() are reimplemented so that they
don't call itermonthdates() which can cause datetime.date under/overflow.
Lib/calendar.py
Lib/test/test_calendar.py