We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3372bcb commit 44eaf2dCopy full SHA for 44eaf2d
Doc/whatsnew/3.12.rst
@@ -1456,7 +1456,7 @@ Changes in the Python API
1456
1457
* Removed ``randrange()`` functionality deprecated since Python 3.10. Formerly,
1458
``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
+ :exc:`TypeError`. Also, the exception raised for non-integer values such as
1460
``randrange(10.5)`` or ``randrange('10')`` has been changed from :exc:`ValueError` to
1461
:exc:`TypeError`. This also prevents bugs where ``randrange(1e25)`` would silently
1462
select from a larger range than ``randrange(10**25)``.
0 commit comments