[Python-checkins] r78315 - in python/branches/release31-maint: Doc/library/decimal.rst

mark.dickinson python-checkins at python.org
Mon Feb 22 16:42:18 CET 2010


Author: mark.dickinson
Date: Mon Feb 22 16:42:18 2010
New Revision: 78315
Log:
Merged revisions 78314 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
 r78314 | mark.dickinson | 2010年02月22日 15:41:48 +0000 (2010年2月22日) | 9 lines
 
 Merged revisions 78312 via svnmerge from 
 svn+ssh://pythondev@svn.python.org/python/trunk
 
 ........
 r78312 | mark.dickinson | 2010年02月22日 15:40:28 +0000 (2010年2月22日) | 1 line
 
 Clarify description of three-argument pow for Decimal types: the exponent of the result is always 0.
 ........
................
Modified:
 python/branches/release31-maint/ (props changed)
 python/branches/release31-maint/Doc/library/decimal.rst
Modified: python/branches/release31-maint/Doc/library/decimal.rst
==============================================================================
--- python/branches/release31-maint/Doc/library/decimal.rst	(original)
+++ python/branches/release31-maint/Doc/library/decimal.rst	Mon Feb 22 16:42:18 2010
@@ -1215,9 +1215,12 @@
 - 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.
 
 
 .. method:: quantize(x, y)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /