summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-01-05 20:21:04 (GMT)
committerGitHub <noreply@github.com>2022-01-05 20:21:04 (GMT)
commite5894ca8fd05e6a6df1033025b9093b68baa718d (patch)
treef3bf224641177a2ed8ccad3b6590633daecfb16f /Doc
parent817a6bc9f7b802511c4d42273a621c556a48870b (diff)
downloadcpython-e5894ca8fd05e6a6df1033025b9093b68baa718d.zip
cpython-e5894ca8fd05e6a6df1033025b9093b68baa718d.tar.gz
cpython-e5894ca8fd05e6a6df1033025b9093b68baa718d.tar.bz2
bpo-46266: Add calendar day of week constants to __all__ (GH-30412)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/calendar.rst11
1 files changed, 10 insertions, 1 deletions
diff --git a/Doc/library/calendar.rst b/Doc/library/calendar.rst
index 6050ff5..b667c42 100644
--- a/Doc/library/calendar.rst
+++ b/Doc/library/calendar.rst
@@ -31,7 +31,7 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
.. class:: Calendar(firstweekday=0)
Creates a :class:`Calendar` object. *firstweekday* is an integer specifying the
- first day of the week. ``0`` is Monday (the default), ``6`` is Sunday.
+ first day of the week. :const:`MONDAY` is ``0`` (the default), :const:`SUNDAY` is ``6``.
A :class:`Calendar` object provides several methods that can be used for
preparing the calendar data for formatting. This class doesn't do any formatting
@@ -406,6 +406,15 @@ The :mod:`calendar` module exports the following data attributes:
locale. This follows normal convention of January being month number 1, so it
has a length of 13 and ``month_abbr[0]`` is the empty string.
+.. data:: MONDAY
+ TUESDAY
+ WEDNESDAY
+ THURSDAY
+ FRIDAY
+ SATURDAY
+ SUNDAY
+
+ Aliases for day numbers, where ``MONDAY`` is ``0`` and ``SUNDAY`` is ``6``.
.. seealso::