[New-bugs-announce] [issue35406] calendar.nextmonth and calendar.prevmonth functions doesn't check if the month is valid
Şahin
report at bugs.python.org
Tue Dec 4 05:55:26 EST 2018
New submission from Şahin <akkayas17 at itu.edu.tr>:
import calendar
calendar.nextmonth(2018, 11) returns (2018, 12) which is OK.
calendar.nextmonth(2018, 12) returns (2019, 1) which is also OK.
calendar.nextmonth(2018, 13) returns (2018, 14). It would make more sense if this was raise calendar.IllegalMonthError.
----------
components: Library (Lib)
messages: 331031
nosy: asocia
priority: normal
severity: normal
status: open
title: calendar.nextmonth and calendar.prevmonth functions doesn't check if the month is valid
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35406>
_______________________________________
More information about the New-bugs-announce
mailing list