summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-06-17 13:57:27 (GMT)
committerGitHub <noreply@github.com>2019-06-17 13:57:27 (GMT)
commit231aad38493c871dd32930a21d256cbacd2ae20c (patch)
tree93c8e378e647443dcbcbc25b2c35e9052bcbef31 /Doc/whatsnew
parent1ce2656f13e726b3b99d4c968926908cff1f460a (diff)
downloadcpython-231aad38493c871dd32930a21d256cbacd2ae20c.zip
cpython-231aad38493c871dd32930a21d256cbacd2ae20c.tar.gz
cpython-231aad38493c871dd32930a21d256cbacd2ae20c.tar.bz2
bpo-37315: Deprecate accepting floats in math.factorial(). (GH-14147)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.9.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index 62b013f..c5cb626 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -109,6 +109,11 @@ Build and C API Changes
Deprecated
==========
+* Currently :func:`math.factorial` accepts :class:`float` instances with
+ non-negative integer values (like ``5.0``). It raises a :exc:`ValueError`
+ for non-integral and negative floats. It is deprecated now. In future
+ Python versions it will raise a :exc:`TypeError` for all floats.
+ (Contributed by Serhiy Storchaka in :issue:`37315`.)
Removed