Skip to content

Commit 487caa9

Browse files
[3.12] gh-128349: Use .. data:: instead of .. class:: for pre-defined decimal Context objects (GH-128379) (#128402)
gh-128349: Use `.. data::` instead of `.. class::` for pre-defined decimal `Context` objects (GH-128379) (cherry picked from commit 60c6518) Co-authored-by: abkmystery <[email protected]>
1 parent 7fcba2e commit 487caa9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Doc/library/decimal.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ New contexts can also be created using the :class:`Context` constructor
10161016
described below. In addition, the module provides three pre-made contexts:
10171017

10181018

1019-
.. class:: BasicContext
1019+
.. data:: BasicContext
10201020

10211021
This is a standard context defined by the General Decimal Arithmetic
10221022
Specification. Precision is set to nine. Rounding is set to
@@ -1027,7 +1027,7 @@ described below. In addition, the module provides three pre-made contexts:
10271027
Because many of the traps are enabled, this context is useful for debugging.
10281028

10291029

1030-
.. class:: ExtendedContext
1030+
.. data:: ExtendedContext
10311031

10321032
This is a standard context defined by the General Decimal Arithmetic
10331033
Specification. Precision is set to nine. Rounding is set to
@@ -1040,7 +1040,7 @@ described below. In addition, the module provides three pre-made contexts:
10401040
presence of conditions that would otherwise halt the program.
10411041

10421042

1043-
.. class:: DefaultContext
1043+
.. data:: DefaultContext
10441044

10451045
This context is used by the :class:`Context` constructor as a prototype for new
10461046
contexts. Changing a field (such a precision) has the effect of changing the

Doc/whatsnew/3.3.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1147,8 +1147,8 @@ API changes
11471147
| :const:`MIN_EMIN` | ``-425000000`` | ``-999999999999999999`` |
11481148
+-------------------+----------------+-------------------------+
11491149

1150-
* In the context templates (:class:`~decimal.DefaultContext`,
1151-
:class:`~decimal.BasicContext` and :class:`~decimal.ExtendedContext`)
1150+
* In the context templates (:const:`~decimal.DefaultContext`,
1151+
:const:`~decimal.BasicContext` and :const:`~decimal.ExtendedContext`)
11521152
the magnitude of :attr:`~decimal.Context.Emax` and
11531153
:attr:`~decimal.Context.Emin` has changed to ``999999``.
11541154

0 commit comments

Comments
 (0)