]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-108202: ``calendar``: Document ``prweek`` (#108466)
authorApurva Khatri <apurvakhatri2011@gmail.com>
Mon, 8 Dec 2025 09:54:59 +0000 (04:54 -0500)
committerGitHub <noreply@github.com>
Mon, 8 Dec 2025 09:54:59 +0000 (09:54 +0000)
Co-authored-by: apurvakhatri <khatri.ap@northeastern.edu>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Doc/library/calendar.rst

index f76b1013dfbc6630726b618f8a1639b87084f935..822e627af8db95b53a6f849a17ecb991773589f4 100644 (file)
@@ -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)