summaryrefslogtreecommitdiff
path: root/Doc/library/math.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-06-17 16:57:27 +0300
committerGitHub <noreply@github.com>2019-06-17 16:57:27 +0300
commit231aad38493c871dd32930a21d256cbacd2ae20c (patch)
tree93c8e378e647443dcbcbc25b2c35e9052bcbef31 /Doc/library/math.rst
parent1ce2656f13e726b3b99d4c968926908cff1f460a (diff)
downloadcpython-git-231aad38493c871dd32930a21d256cbacd2ae20c.tar.gz
bpo-37315: Deprecate accepting floats in math.factorial(). (GH-14147)
Diffstat (limited to 'Doc/library/math.rst')
-rw-r--r--Doc/library/math.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index ff937d27c6..bfce41a7f4 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -71,6 +71,9 @@ Number-theoretic and representation functions
Return *x* factorial as an integer. Raises :exc:`ValueError` if *x* is not integral or
is negative.
+ .. deprecated:: 3.9
+ Accepting floats with integral values (like ``5.0``) is deprecated.
+
.. function:: floor(x)