[3.12] gh-108202: Document calendar.Calendar methods getfirstweekday and setfirstweekday (GH-127579) (#128565)

(cherry picked from commit 953b49e546)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2025-01-07 00:46:16 +01:00 committed by GitHub
parent 8788a9570f
commit fb8bb36f56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,6 +40,14 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
:class:`Calendar` instances have the following methods:
.. method:: getfirstweekday()
Return an :class:`int` for the current first weekday (0-6).
.. method:: setfirstweekday(firstweekday)
Set the first weekday to *firstweekday*, passed as an :class:`int` where Monday is 0 and Sunday is 6.
.. method:: iterweekdays()
Return an iterator for the week day numbers that will be used for one