New submission from Şahin <akkaya...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue35406> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com