Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 84230a1

Browse files
committed
Merged revisions 78217-78218 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r78217 | mark.dickinson | 2010-02-18 14:27:02 +0000 (Thu, 18 Feb 2010) | 5 lines Issue #7633: Context method in the decimal module (with the exception of the 'canonical' and 'is_canonical' methods) now consistently accept integer arguments wherever a Decimal instance is accepted. Thanks Juan José Conti for the patch. ........ r78218 | mark.dickinson | 2010-02-18 14:45:33 +0000 (Thu, 18 Feb 2010) | 1 line Doctest fixes for decimal.py: add an integer-argument doctest for logical_invert; don't use integer literals with a leading zero. ........
1 parent 184bdfb commit 84230a1

5 files changed

Lines changed: 792 additions & 20 deletions

File tree

Doc/library/decimal.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,8 +896,11 @@ In addition to the three supplied contexts, new contexts can be created with the
896896
a large number of methods for doing arithmetic directly in a given context.
897897
In addition, for each of the :class:`Decimal` methods described above (with
898898
the exception of the :meth:`adjusted` and :meth:`as_tuple` methods) there is
899-
a corresponding :class:`Context` method. For example, ``C.exp(x)`` is
900-
equivalent to ``x.exp(context=C)``.
899+
a corresponding :class:`Context` method. For example, for a :class:`Context`
900+
instance ``C`` and :class:`Decimal` instance ``x``, ``C.exp(x)`` is
901+
equivalent to ``x.exp(context=C)``. Each :class:`Context` method accepts a
902+
Python integer (an instance of :class:`int` or :class:`long`) anywhere that a
903+
Decimal instance is accepted.
901904

902905

903906
.. method:: clear_flags()

0 commit comments

Comments
 (0)