MCPcopy Index your code
hub / github.com/python/cpython / IllegalMonthError

Class IllegalMonthError

Lib/calendar.py:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31# This is trick for backward compatibility. Since 3.13, we will raise IllegalMonthError instead of
32# IndexError for bad month number(out of 1-12). But we can't remove IndexError for backward compatibility.
33class IllegalMonthError(ValueError, IndexError):
34 def __init__(self, month):
35 self.month = month
36 def __str__(self):
37 return "bad month number %r; must be 1-12" % self.month
38
39
40class IllegalWeekdayError(ValueError):

Callers 1

_validate_monthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…