]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-120567: Clarify weekday return in calendar.monthrange docstring (GH-120570...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 16 Jun 2024 21:09:54 +0000 (23:09 +0200)
committerGitHub <noreply@github.com>
Sun, 16 Jun 2024 21:09:54 +0000 (21:09 +0000)
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>
Lib/calendar.py

index 833ce331b14a0ccdf07986ac6ba0903e323deeb2..069dd5174112ae1f85079116d34fe21d3b549b53 100644 (file)
@@ -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)