summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-16 21:09:54 (GMT)
committerGitHub <noreply@github.com>2024-06-16 21:09:54 (GMT)
commitaa39ba0af33dce8736a4973be48929d02fb5261e (patch)
tree46564d3cde5dd9b7a2faeb7426a0a12c8fffea87
parent7655989a3a777339586a48242677b8bb9cec4c92 (diff)
downloadcpython-aa39ba0af33dce8736a4973be48929d02fb5261e.zip
cpython-aa39ba0af33dce8736a4973be48929d02fb5261e.tar.gz
cpython-aa39ba0af33dce8736a4973be48929d02fb5261e.tar.bz2
[3.13] gh-120567: Clarify weekday return in calendar.monthrange docstring (GH-120570) (#120597)
gh-120567: Clarify weekday return in calendar.monthrange docstring (GH-120570) (cherry picked from commit bd4516d9efee109dd3b02a3d60845f9053fc6718) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
-rw-r--r--Lib/calendar.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/calendar.py b/Lib/calendar.py
index 833ce33..069dd51 100644
--- a/Lib/calendar.py
+++ b/Lib/calendar.py
@@ -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)