Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.13] gh-128349: Use .. data:: instead of .. class:: for pre-defined decimal Context objects (GH-128379) #128401

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Doc/library/decimal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,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
Expand All @@ -1027,7 +1027,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
Expand All @@ -1040,7 +1040,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
Expand Down
4 changes: 2 additions & 2 deletions Doc/whatsnew/3.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1147,8 +1147,8 @@
| :const:`MIN_EMIN` | ``-425000000`` | ``-999999999999999999`` |
+-------------------+----------------+-------------------------+

* In the context templates (:class:`~decimal.DefaultContext`,
:class:`~decimal.BasicContext` and :class:`~decimal.ExtendedContext`)
* In the context templates (:const:`~decimal.DefaultContext`,

Check warning on line 1150 in Doc/whatsnew/3.3.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:attr reference target not found: decimal.Context.Emax [ref.attr]

Check warning on line 1150 in Doc/whatsnew/3.3.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:attr reference target not found: decimal.Context.Emin [ref.attr]
:const:`~decimal.BasicContext` and :const:`~decimal.ExtendedContext`)
the magnitude of :attr:`~decimal.Context.Emax` and
:attr:`~decimal.Context.Emin` has changed to ``999999``.

Expand Down
Loading