From: Apurva Khatri Date: Mon, 8 Dec 2025 09:54:59 +0000 (-0500) Subject: gh-108202: ``calendar``: Document ``prweek`` (#108466) X-Git-Tag: v3.15.0a3~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8620d3009ab2add053a4dfee65fdddc0ca0dfcc0;p=thirdparty%2FPython%2Fcpython.git gh-108202: ``calendar``: Document ``prweek`` (#108466) Co-authored-by: apurvakhatri Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- diff --git a/Doc/library/calendar.rst b/Doc/library/calendar.rst index f76b1013dfbc..822e627af8db 100644 --- a/Doc/library/calendar.rst +++ b/Doc/library/calendar.rst @@ -158,6 +158,11 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is :class:`TextCalendar` instances have the following methods: + .. method:: prweek(theweek, width) + + Print a week's calendar as returned by :meth:`formatweek` and without a + final newline. + .. method:: formatday(theday, weekday, width)