https://github.com/python/cpython/commit/335c4c451fff8d442d0cab77dfac42b11cb25093
commit: 335c4c451fff8d442d0cab77dfac42b11cb25093
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-10-17T10:39:15+01:00
summary:
[3.14] Fix documented `TextCalendar.format{week,monthname}()` signatures
(GH-159516) (#159568)
(cherry picked from commit 9cb7a5ba22a51d92a2e321e84ec0287d931f6a9b)
Co-authored-by: Abhishek Acharya
<[email protected]>
files:
M Doc/library/calendar.rst
diff --git a/Doc/library/calendar.rst b/Doc/library/calendar.rst
index 5c3b0afc15fe52..8f75abcddbdf37 100644
--- a/Doc/library/calendar.rst
+++ b/Doc/library/calendar.rst
@@ -166,10 +166,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.
@@ -197,7 +197,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]