diff --git a/Doc/library/random.rst b/Doc/library/random.rst index c2a4df42cd17f6..2fa9983f36c003 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -141,7 +141,7 @@ Functions for integers ``randrange(10)``. In the future, this will raise a :exc:`TypeError`. .. deprecated:: 3.10 - The exception raised for non-integral values such as ``randrange(10.5)`` + The exception raised for non-integer values such as ``randrange(10.5)`` or ``randrange('10')`` will be changed from :exc:`ValueError` to :exc:`TypeError`.