summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-02-22 15:41:07 +0000
committerMark Dickinson <dickinsm@gmail.com>2010-02-22 15:41:07 +0000
commit7c5adf17103beb92324b6c2bf211b0e5d581caa4 (patch)
treef948937b2bca8b14fdef97fa37b5646cb4f8d546
parent2f7b50a0db68f74ce81e0211cb728221f3b91696 (diff)
downloadcpython-git-7c5adf17103beb92324b6c2bf211b0e5d581caa4.tar.gz
Merged revisions 78312 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78312 | mark.dickinson | 2010-02-22 15:40:28 +0000 (Mon, 22 Feb 2010) | 1 line Clarify description of three-argument pow for Decimal types: the exponent of the result is always 0. ........
-rw-r--r--Doc/library/decimal.rst9
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
index 2a3304cee7..81728d2195 100644
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -1275,9 +1275,12 @@ In addition to the three supplied contexts, new contexts can be created with the
- at least one of ``x`` or ``y`` must be nonzero
- ``modulo`` must be nonzero and have at most 'precision' digits
- The result of ``Context.power(x, y, modulo)`` is identical to the result
- that would be obtained by computing ``(x**y) % modulo`` with unbounded
- precision, but is computed more efficiently. It is always exact.
+ The value resulting from ``Context.power(x, y, modulo)`` is
+ equal to the value that would be obtained by computing ``(x**y)
+ % modulo`` with unbounded precision, but is computed more
+ efficiently. The exponent of the result is zero, regardless of
+ the exponents of ``x``, ``y`` and ``modulo``. The result is
+ always exact.
.. versionchanged:: 2.6
``y`` may now be nonintegral in ``x**y``.