mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
gh-120567: Clarify weekday return in calendar.monthrange docstring (#120570)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
4f59f86382
commit
bd4516d9ef
1 changed files with 2 additions and 2 deletions
|
|
@ -159,8 +159,8 @@ def weekday(year, month, day):
|
|||
|
||||
|
||||
def monthrange(year, month):
|
||||
"""Return weekday (0-6 ~ Mon-Sun) and number of days (28-31) for
|
||||
year, month."""
|
||||
"""Return weekday of first day of month (0-6 ~ Mon-Sun)
|
||||
and number of days (28-31) for year, month."""
|
||||
if not 1 <= month <= 12:
|
||||
raise IllegalMonthError(month)
|
||||
day1 = weekday(year, month, 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue