https://github.com/python/cpython/commit/9cb7a5ba22a51d92a2e321e84ec0287d931f6a9b
commit: 9cb7a5ba22a51d92a2e321e84ec0287d931f6a9b
branch: main
author: Abhishek Acharya <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-10-16T20:21:32+01:00
summary:

Fix documented `TextCalendar.format{week,monthname}()` signatures (#159516)

files:
M Doc/library/calendar.rst

diff --git a/Doc/library/calendar.rst b/Doc/library/calendar.rst
index fb0ffc73b48c40..0dc1481aeff01d 100644
--- a/Doc/library/calendar.rst
+++ b/Doc/library/calendar.rst
@@ -169,10 +169,10 @@ interpreted as prescribed by the ISO 8601 standard.  Year 
0 is 1 BC, year -1 is
       the specified width, representing an empty day. The *weekday* parameter
       is unused.
 
-   .. method:: formatweek(theweek, w=0)
+   .. method:: formatweek(theweek, width)
 
-      Return a single week in a string with no newline. If *w* is provided, it
-      specifies the width of the date columns, which are centered. Depends
+      Return a single week in a string with no newline. *width* specifies
+      the width of the date columns, which are centered. Depends
       on the first weekday as specified in the constructor or set by the
       :meth:`setfirstweekday` method.
 
@@ -200,7 +200,7 @@ interpreted as prescribed by the ISO 8601 standard.  Year 0 
is 1 BC, year -1 is
       :meth:`setfirstweekday` method.
 
 
-   .. method:: formatmonthname(theyear, themonth, width=0, withyear=True)
+   .. method:: formatmonthname(theyear, themonth, width, withyear=True)
 
       Return a string representing the month's name centered within the
       specified *width*. If *withyear* is ``True``, include the year in the

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to