summaryrefslogtreecommitdiffstats
path: root/Doc/library/decimal.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/decimal.rst')
-rw-r--r--Doc/library/decimal.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
index c1c8482..a3325f7 100644
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -896,8 +896,11 @@ In addition to the three supplied contexts, new contexts can be created with the
a large number of methods for doing arithmetic directly in a given context.
In addition, for each of the :class:`Decimal` methods described above (with
the exception of the :meth:`adjusted` and :meth:`as_tuple` methods) there is
- a corresponding :class:`Context` method. For example, ``C.exp(x)`` is
- equivalent to ``x.exp(context=C)``.
+ a corresponding :class:`Context` method. For example, for a :class:`Context`
+ instance ``C`` and :class:`Decimal` instance ``x``, ``C.exp(x)`` is
+ equivalent to ``x.exp(context=C)``. Each :class:`Context` method accepts a
+ Python integer (an instance of :class:`int` or :class:`long`) anywhere that a
+ Decimal instance is accepted.
.. method:: clear_flags()