Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f8cab2

Browse files
author
Stefan Krah
committed
Closes #10650: Deprecate the watchexp parameter of Decimal.quantize().
1 parent ab0c3c7 commit 0f8cab2

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

Doc/library/decimal.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,11 @@ Decimal objects
737737
resulting exponent is greater than :attr:`Emax` or less than
738738
:attr:`Etiny`.
739739

740+
.. deprecated:: 3.3
741+
*watchexp* is an implementation detail from the pure Python version
742+
and is not present in the C version. It will be removed in version
743+
3.4, where it defaults to ``True``.
744+
740745
.. method:: radix()
741746

742747
Return ``Decimal(10)``, the radix (base) in which the :class:`Decimal`

Doc/whatsnew/3.3.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,10 @@ API changes
11901190
changed to match the order displayed by :func:`repr`.
11911191

11921192

1193+
* The ``watchexp`` parameter in the :meth:`~decimal.Decimal.quantize` method
1194+
is deprecated.
1195+
1196+
11931197
ftplib
11941198
------
11951199

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ Core and Builtins
5151
Library
5252
-------
5353

54+
- Issue #10650: Deprecate the watchexp parameter of the Decimal.quantize()
55+
method.
56+
5457
- Issue #15785: Modify window.get_wch() API of the curses module: return
5558
a character for most keys, and an integer for special keys, instead of
5659
always returning an integer. So it is now possible to distinguish special

0 commit comments

Comments
 (0)