Skip to content

Commit 44eaf2d

Browse files
committed
pythongh-106973: Change non-integral to non-integer in 3.12 docs
1 parent 3372bcb commit 44eaf2d

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
@@ -1456,7 +1456,7 @@ Changes in the Python API
14561456

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

0 commit comments

Comments
 (0)