bpo-37315: Deprecate accepting floats in math.factorial(). (GH-14147)

This commit is contained in:
Serhiy Storchaka 2019-06-17 16:57:27 +03:00 committed by GitHub
parent 1ce2656f13
commit 231aad3849
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 7 deletions

View file

@ -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)