From: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com> Date: Sat, 22 Jul 2023 08:37:16 +0000 (+0200) Subject: [3.11] Change non-integral to non-integer in random docs (GH-106975) (#106985) X-Git-Tag: v3.11.5~178 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f7c23e4dfb4b932b3916f8f79895e2a1bf3ae43;p=thirdparty%2FPython%2Fcpython.git [3.11] Change non-integral to non-integer in random docs (GH-106975) (#106985) --- diff --git a/Doc/library/random.rst b/Doc/library/random.rst index 3109343a3c52..4af4f83e280c 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`.