commit | 231aad38493c871dd32930a21d256cbacd2ae20c | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Mon Jun 17 16:57:27 2019 +0300 |
committer | GitHub <noreply@github.com> | Mon Jun 17 16:57:27 2019 +0300 |
tree | 93c8e378e647443dcbcbc25b2c35e9052bcbef31 | |
parent | 1ce2656f13e726b3b99d4c968926908cff1f460a [diff] [blame] |
bpo-37315: Deprecate accepting floats in math.factorial(). (GH-14147)
diff --git a/Doc/library/math.rst b/Doc/library/math.rst index ff937d2..bfce41a 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst
@@ -71,6 +71,9 @@ 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)