]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-106973: Change non-integral to non-integer in "3.12 What's New" (#106984)
authorSebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com>
Sat, 22 Jul 2023 08:27:48 +0000 (10:27 +0200)
committerGitHub <noreply@github.com>
Sat, 22 Jul 2023 08:27:48 +0000 (02:27 -0600)
Doc/whatsnew/3.12.rst

index 1e35427c497c8baa6a49914ffd646463ac457810..45093122eb7b7229acb91c3096037edf6cd30d00 100644 (file)
@@ -1456,7 +1456,7 @@ Changes in the Python API
 
 * Removed ``randrange()`` functionality deprecated since Python 3.10.  Formerly,
   ``randrange(10.0)`` losslessly converted to ``randrange(10)``. Now, it raises a
-  :exc:`TypeError`. Also, the exception raised for non-integral values such as
+  :exc:`TypeError`. Also, the exception raised for non-integer values such as
   ``randrange(10.5)`` or ``randrange('10')`` has been changed from :exc:`ValueError` to
   :exc:`TypeError`.  This also prevents bugs where ``randrange(1e25)`` would silently
   select from a larger range than ``randrange(10**25)``.