Skip to content

Commit 9cbde7c

Browse files
[3.12] gh-106973: Change non-integral to non-integer in "3.12 What's New" (GH-106984) (#106986)
Co-authored-by: Sebastiaan Zeeff <[email protected]>
1 parent d0176ed commit 9cbde7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/whatsnew/3.12.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ Changes in the Python API
14551455

14561456
* Removed ``randrange()`` functionality deprecated since Python 3.10. Formerly,
14571457
``randrange(10.0)`` losslessly converted to ``randrange(10)``. Now, it raises a
1458-
:exc:`TypeError`. Also, the exception raised for non-integral values such as
1458+
:exc:`TypeError`. Also, the exception raised for non-integer values such as
14591459
``randrange(10.5)`` or ``randrange('10')`` has been changed from :exc:`ValueError` to
14601460
:exc:`TypeError`. This also prevents bugs where ``randrange(1e25)`` would silently
14611461
select from a larger range than ``randrange(10**25)``.

0 commit comments

Comments
 (0)