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