]> 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 27bf12dd9f34c61c052288e9a6f744c494ff32c5..e019ea7f7000b9d2598321d649dd066faf101256 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 9a9a587a98886cb8c4251350a48af26d6ff99583..dad1622c44d5eeb4a8e4d54bf15721ea42e10081 100644 (file)
--- 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