]> 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:27:55 +0000 (20:27 -0400)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Wed, 28 Sep 2016 00:27:55 +0000 (20:27 -0400)
commite3fd248c771e1a8bf337a4a307dacf1e85106611
tree3991349a04581590bc8d6099520554cbaa02acb6
parent6703e042fa0005dbf76578ddf24c7c170a715061
parent957b75699fd1ed2eb18e8f7fa6fee1062fabad68
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