]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Closes #10650: Deprecate the watchexp parameter of Decimal.quantize().
authorStefan Krah <skrah@bytereef.org>
Thu, 30 Aug 2012 10:33:55 +0000 (12:33 +0200)
committerStefan Krah <skrah@bytereef.org>
Thu, 30 Aug 2012 10:33:55 +0000 (12:33 +0200)
Doc/library/decimal.rst
Doc/whatsnew/3.3.rst
Misc/NEWS

index 3fa006bec22fc400f877abfb3e1f3563aa50fc23..4a2b2d0a9bf276de100b737dba9e8399abe992a6 100644 (file)
@@ -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`
index 845de84557074d54aa1161e3d7fc32e60bb9cda5..47cbd4ec4dddb6e47b978194401c095f5340fa4c 100644 (file)
@@ -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
 ------
 
index 3d55f54a40a1f5679914c1ff0177d9e331f13ad0..98be0c2e08341a1e4bad76b7d54d5ea921a35b01 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -23,6 +23,9 @@ Library
 - Issue #15340: Fix importing the random module when /dev/urandom cannot
   be opened.  This was a regression caused by the hash randomization patch.
 
+- 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