summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorabkmystery <36216019+abkmystery@users.noreply.github.com>2025-01-02 07:20:31 (GMT)
committerGitHub <noreply@github.com>2025-01-02 07:20:31 (GMT)
commit60c65184695a3eab766b3bc26fc99f695deb998f (patch)
treef38658a9f6d5b7c9bc4a84d86241e1b81c1465fc /Doc/library
parentc810ed7c8e0a7464d19700ba1c8668a406f1c042 (diff)
downloadcpython-60c65184695a3eab766b3bc26fc99f695deb998f.zip
cpython-60c65184695a3eab766b3bc26fc99f695deb998f.tar.gz
cpython-60c65184695a3eab766b3bc26fc99f695deb998f.tar.bz2
gh-128349: Use `.. data::` instead of `.. class::` for pre-defined decimal `Context` objects (#128379)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/decimal.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
index c9a3e44..185eaf3 100644
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -1033,7 +1033,7 @@ New contexts can also be created using the :class:`Context` constructor
described below. In addition, the module provides three pre-made contexts:
-.. class:: BasicContext
+.. data:: BasicContext
This is a standard context defined by the General Decimal Arithmetic
Specification. Precision is set to nine. Rounding is set to
@@ -1044,7 +1044,7 @@ described below. In addition, the module provides three pre-made contexts:
Because many of the traps are enabled, this context is useful for debugging.
-.. class:: ExtendedContext
+.. data:: ExtendedContext
This is a standard context defined by the General Decimal Arithmetic
Specification. Precision is set to nine. Rounding is set to
@@ -1057,7 +1057,7 @@ described below. In addition, the module provides three pre-made contexts:
presence of conditions that would otherwise halt the program.
-.. class:: DefaultContext
+.. data:: DefaultContext
This context is used by the :class:`Context` constructor as a prototype for new
contexts. Changing a field (such a precision) has the effect of changing the