We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4e2753 commit bd3bfd1Copy full SHA for bd3bfd1
Doc/library/calendar.rst
@@ -580,11 +580,8 @@ The :mod:`!calendar` module defines the following exceptions:
580
581
.. exception:: IllegalMonthError(month)
582
583
- A subclass of both :exc:`ValueError` and :exc:`IndexError`,
+ A subclass of :exc:`ValueError` and :exc:`IndexError`,
584
raised when the given month number is outside of the range 1-12 (inclusive).
585
- The :exc:`IndexError` base class is preserved for backwards compatibility
586
- with code that caught :exc:`IndexError` for bad month numbers prior to
587
- Python 3.13.
588
589
.. versionchanged:: 3.12
590
:exc:`IllegalMonthError` is now also a subclass of
0 commit comments