Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 806d7c9 commit d55b4daCopy full SHA for d55b4da
1 file changed
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