summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-08-30 10:33:55 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-08-30 10:33:55 (GMT)
commit0f8cab20d9d203530bd550fb237d55e8c1ce9e19 (patch)
tree26727da698212494b95b4ba5728366820443a490
parentab0c3c7183d87ded2705c9f1ca0e9b877d87cc1a (diff)
downloadcpython-0f8cab20d9d203530bd550fb237d55e8c1ce9e19.zip
cpython-0f8cab20d9d203530bd550fb237d55e8c1ce9e19.tar.gz
cpython-0f8cab20d9d203530bd550fb237d55e8c1ce9e19.tar.bz2
Closes #10650: Deprecate the watchexp parameter of Decimal.quantize().
-rw-r--r--Doc/library/decimal.rst5
-rw-r--r--Doc/whatsnew/3.3.rst4
-rw-r--r--Misc/NEWS3
3 files changed, 12 insertions, 0 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
index 3fa006b..4a2b2d0 100644
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -737,6 +737,11 @@ Decimal objects
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``.
+
.. method:: radix()
Return ``Decimal(10)``, the radix (base) in which the :class:`Decimal`
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
index 27bf12d..e019ea7 100644
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -1190,6 +1190,10 @@ API changes
changed to match the order displayed by :func:`repr`.
+* The ``watchexp`` parameter in the :meth:`~decimal.Decimal.quantize` method
+ is deprecated.
+
+
ftplib
------
diff --git a/Misc/NEWS b/Misc/NEWS
index 9a9a587..dad1622 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -51,6 +51,9 @@ Core and Builtins
Library
-------
+- Issue #10650: Deprecate the watchexp parameter of the Decimal.quantize()
+ method.
+
- Issue #15785: Modify window.get_wch() API of the curses module: return
a character for most keys, and an integer for special keys, instead of
always returning an integer. So it is now possible to distinguish special