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.setfirstweekday() documented parameter name does not match the implementation #153853
https://docs.python.org/3/library/calendar.html#calendar.setfirstweekday documents the module-level function as setfirstweekday(weekday), but the implementation in Lib/calendar.py is def setfirstweekday(firstweekday). The parameter can be passed by keyword, so the documented signature fails:
The fix is to change the documented signature to setfirstweekday(firstweekday), matching the code and the already-correct Calendar.setfirstweekday(firstweekday) entry in the same document. I have a PR ready: #153851.
Activity
gh-153853: Fix parameter name of calendar.setfirstweekday() in docs (#…
brettcannon commentedon Jul 17, 2026
Thanks!
[3.13] gh-153853: Fix parameter name of calendar.setfirstweekday() in…
[3.14] gh-153853: Fix parameter name of calendar.setfirstweekday() in…
[3.15] gh-153853: Fix parameter name of calendar.setfirstweekday() in…