Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _validate_month
Function
_validate_month
Lib/calendar.py:163–165 ·
view source on GitHub ↗
(month)
Source
from the content-addressed store, hash-verified
161
162
163
def
_validate_month(month):
164
if
not 1 <= month <= 12:
165
raise
IllegalMonthError(month)
166
167
def
monthrange(year, month):
168
""
"Return weekday of first day of month (0-6 ~ Mon-Sun)
Callers
4
monthrange
Function · 0.85
formatmonthname
Method · 0.85
formatmonthname
Method · 0.85
main
Function · 0.85
Calls
1
IllegalMonthError
Class · 0.85
Tested by
no test coverage detected