From 231aad38493c871dd32930a21d256cbacd2ae20c Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 17 Jun 2019 16:57:27 +0300 Subject: bpo-37315: Deprecate accepting floats in math.factorial(). (GH-14147) --- Doc/library/math.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Doc/library/math.rst') 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) -- cgit v1.2.1