summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2014-04-30 17:15:38 (GMT)
committerStefan Krah <skrah@bytereef.org>2014-04-30 17:15:38 (GMT)
commitb151f8f60b3ea7199d4d98ec77f2e6fb03b8b7fb (patch)
tree7254b61d620d92178c03051cca8ad3cf715d55ad /Doc/library
parent5c2ac8c1c664d17924157ed769a7541c9228a1e3 (diff)
downloadcpython-b151f8f60b3ea7199d4d98ec77f2e6fb03b8b7fb.zip
cpython-b151f8f60b3ea7199d4d98ec77f2e6fb03b8b7fb.tar.gz
cpython-b151f8f60b3ea7199d4d98ec77f2e6fb03b8b7fb.tar.bz2
Issue #10650: Remove the non-standard 'watchexp' parameter from the
Decimal.quantize() method in the Python version. It had never been present in the C version.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/decimal.rst12
1 files changed, 3 insertions, 9 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
index aa526db..7052985 100644
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -744,7 +744,7 @@ Decimal objects
* ``"NaN"``, indicating that the operand is a quiet NaN (Not a Number).
* ``"sNaN"``, indicating that the operand is a signaling NaN.
- .. method:: quantize(exp, rounding=None, context=None, watchexp=True)
+ .. method:: quantize(exp, rounding=None, context=None)
Return a value equal to the first operand after rounding and having the
exponent of the second operand.
@@ -767,14 +767,8 @@ Decimal objects
``context`` argument; if neither argument is given the rounding mode of
the current thread's context is used.
- If *watchexp* is set (default), then an error is returned whenever the
- resulting exponent is greater than :attr:`Emax` or less than
- :attr:`Etiny`.
-
- .. deprecated:: 3.3
- *watchexp* is an implementation detail from the pure Python version
- and is not present in the C version. It will be removed in version
- 3.4, where it defaults to ``True``.
+ An error is returned whenever the resulting exponent is greater than
+ :attr:`Emax` or less than :attr:`Etiny`.
.. method:: radix()