From a7db4590307fcfb347aa715a0475b27a06456ef2 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 6 Jun 2023 16:08:00 +0200 Subject: [PATCH 1/3] gh-82180: Update math.factorial(float) doc for Python 3.10 --- Doc/library/math.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 9e58b552576ce6..66ff29e9bf68a8 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -71,8 +71,8 @@ Number-theoretic and representation functions Return *n* factorial as an integer. Raises :exc:`ValueError` if *n* is not integral or is negative. - .. deprecated:: 3.9 - Accepting floats with integral values (like ``5.0``) is deprecated. + .. versionchanged:: 3.10 + Floating point number (like ``5.0``) is no longer accepted. .. function:: floor(x) From e9b839c73b1fd5f2c4ba8b404e6da809db7c573a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 6 Jun 2023 19:57:31 +0200 Subject: [PATCH 2/3] Add "with integral value" --- Doc/library/math.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 66ff29e9bf68a8..9e2a99eea61da6 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -72,7 +72,8 @@ Number-theoretic and representation functions is negative. .. versionchanged:: 3.10 - Floating point number (like ``5.0``) is no longer accepted. + Floating point numbers with integral value (like ``5.0``) are no longer + accepted. .. function:: floor(x) From 77087e1e6e1b6dba73f511f5b048ac8fd808d742 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 6 Jun 2023 21:42:19 +0200 Subject: [PATCH 3/3] with integer valueS --- Doc/library/math.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 9e2a99eea61da6..9caf7230eed0aa 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -72,8 +72,7 @@ Number-theoretic and representation functions is negative. .. versionchanged:: 3.10 - Floating point numbers with integral value (like ``5.0``) are no longer - accepted. + Floats with integral values (like ``5.0``) are no longer accepted. .. function:: floor(x)