You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
calendar.IllegalMonthError docs omit IndexError base class #148663
The documentation for calendar.IllegalMonthError describes it only as "a subclass of ValueError", but the source code defines it as class IllegalMonthError(ValueError, IndexError):.
The IndexError base class is intentional for backwards compatibility (see the source comment in Lib/calendar.py), but this is not mentioned in the docs. Users catching IndexError for bad month numbers won't know their code still works after 3.13.
Activity
pythongh-148663: Document that IllegalMonthError inherits from both V…
pythongh-148663: Document that IllegalMonthError inherits from both V…
pythongh-148663: Document that IllegalMonthError inherits from both V…
pythongh-148663: Document that IllegalMonthError inherits from both V…
gh-148663: Document that `calendar.IllegalMonthError` inherits from b…
pythongh-148663: Document that `calendar.IllegalMonthError` inherits …
[3.14] gh-148663: Document that `calendar.IllegalMonthError` inherits…
[3.13] gh-148663: Document that `calendar.IllegalMonthError` inherits…