Skip to content

Commit 60c6518

Browse files
authored
pythongh-128349: Use .. data:: instead of .. class:: for pre-defined decimal Context objects (python#128379)
1 parent c810ed7 commit 60c6518

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Doc/library/decimal.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ New contexts can also be created using the :class:`Context` constructor
10331033
described below. In addition, the module provides three pre-made contexts:
10341034

10351035

1036-
.. class:: BasicContext
1036+
.. data:: BasicContext
10371037

10381038
This is a standard context defined by the General Decimal Arithmetic
10391039
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:
10441044
Because many of the traps are enabled, this context is useful for debugging.
10451045

10461046

1047-
.. class:: ExtendedContext
1047+
.. data:: ExtendedContext
10481048

10491049
This is a standard context defined by the General Decimal Arithmetic
10501050
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:
10571057
presence of conditions that would otherwise halt the program.
10581058

10591059

1060-
.. class:: DefaultContext
1060+
.. data:: DefaultContext
10611061

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

Doc/whatsnew/3.3.rst

Lines changed: 2 additions & 2 deletions
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)