Skip to content

Commit 120cb18

Browse files
authored
Fix rst formatting in 3.12 What's New (#101110)
1 parent 3325f05 commit 120cb18

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/whatsnew/3.12.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -677,13 +677,13 @@ Changes in the Python API
677677
contain ASCII letters and digits and underscore.
678678
(Contributed by Serhiy Storchaka in :gh:`91760`.)
679679

680-
* Removed randrange() functionality deprecated since Python 3.10. Formerly,
681-
randrange(10.0) losslessly converted to randrange(10). Now, it raises a
682-
TypeError. Also, the exception raised for non-integral values such as
683-
randrange(10.5) or randrange('10') has been changed from ValueError to
684-
TypeError. This also prevents bugs where ``randrange(1e25)`` would silently
680+
* Removed ``randrange()`` functionality deprecated since Python 3.10. Formerly,
681+
``randrange(10.0)`` losslessly converted to ``randrange(10)``. Now, it raises a
682+
:exc:`TypeError`. Also, the exception raised for non-integral values such as
683+
``randrange(10.5)`` or ``randrange('10')`` has been changed from :exc:`ValueError` to
684+
:exc:`TypeError`. This also prevents bugs where ``randrange(1e25)`` would silently
685685
select from a larger range than ``randrange(10**25)``.
686-
(Originally suggested by Serhiy Storchaka gh-86388.)
686+
(Originally suggested by Serhiy Storchaka :gh:`86388`.)
687687

688688
* :class:`argparse.ArgumentParser` changed encoding and error handler
689689
for reading arguments from file (e.g. ``fromfile_prefix_chars`` option)

0 commit comments

Comments
 (0)