[Python-checkins] cpython: Closes #10650: Deprecate the watchexp parameter of Decimal.quantize().

stefan.krah python-checkins at python.org
Thu Aug 30 12:39:42 CEST 2012


http://hg.python.org/cpython/rev/7db16ff9f5fd
changeset:   78808:7db16ff9f5fd
user:        Stefan Krah <skrah at bytereef.org>
date:        Thu Aug 30 12:33:55 2012 +0200
summary:
  Closes #10650: Deprecate the watchexp parameter of Decimal.quantize().

files:
  Doc/library/decimal.rst |  5 +++++
  Doc/whatsnew/3.3.rst    |  4 ++++
  Misc/NEWS               |  3 +++
  3 files changed, 12 insertions(+), 0 deletions(-)


diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -737,6 +737,11 @@
       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
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -1190,6 +1190,10 @@
   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
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -51,6 +51,9 @@
 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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list