cpython/Misc/NEWS.d/next/Library/2017-10-23-20-03-36.bpo-282...

6 lines
360 B
ReStructuredText

Calendar.itermonthdates() will now consistently raise an exception when a
date falls outside of the 0001-01-01 through 9999-12-31 range. To support
applications that cannot tolerate such exceptions, the new methods
itermonthdays3() and itermonthdays4() are added. The new methods return
tuples and are not restricted by the range supported by datetime.date.