Skip to content

Commit 8133ed1

Browse files
gh-108202: Document calendar.Calendar.firstweekday
1 parent 953b49e commit 8133ed1

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

Doc/library/calendar.rst

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,27 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
3838
itself. This is the job of subclasses.
3939

4040

41-
:class:`Calendar` instances have the following methods:
41+
:class:`Calendar` instances have the following methods and attributes:
42+
43+
.. attribute:: firstweekday
44+
45+
The first weekday as an integer (0--6).
46+
47+
This property can also be set and read using
48+
:meth:`~Calendar.setfirstweekday` and
49+
:meth:`~Calendar.getfirstweekday` respectively.
4250

4351
.. method:: getfirstweekday()
4452

45-
Return an :class:`int` for the current first weekday (0-6).
53+
Return an :class:`int` for the current first weekday (0--6).
54+
55+
Identical to the reading the :attr:`firstweekday` property.
4656

4757
.. method:: setfirstweekday(firstweekday)
4858

49-
Set the first weekday to *firstweekday*, passed as an :class:`int` where Monday is 0 and Sunday is 6.
59+
Set the first weekday to *firstweekday*, passed as an :class:`int` (0--6)
60+
61+
Identical to the setting the :attr:`firstweekday` property.
5062

5163
.. method:: iterweekdays()
5264

0 commit comments

Comments
 (0)