summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com>2023-07-22 08:27:48 (GMT)
committerGitHub <noreply@github.com>2023-07-22 08:27:48 (GMT)
commitd55b4da10c56f3299998b5b8fee3a8a744fac76c (patch)
tree3d5730f0d5a9c0e1ee9cb9dad7b5ea499af02c02 /Doc/whatsnew
parent806d7c98a5da5c1fd2e52a5b666f36ca4f545092 (diff)
downloadcpython-d55b4da10c56f3299998b5b8fee3a8a744fac76c.zip
cpython-d55b4da10c56f3299998b5b8fee3a8a744fac76c.tar.gz
cpython-d55b4da10c56f3299998b5b8fee3a8a744fac76c.tar.bz2
gh-106973: Change non-integral to non-integer in "3.12 What's New" (#106984)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.12.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 1e35427..4509312 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -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)``.