Skip to content

Commit

Permalink
Fix rst formatting in 3.12 What's New (python#101110)
Browse files Browse the repository at this point in the history
  • Loading branch information
scrazzz authored Jan 21, 2023
1 parent 3325f05 commit 120cb18
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -677,13 +677,13 @@ Changes in the Python API
contain ASCII letters and digits and underscore.
(Contributed by Serhiy Storchaka in :gh:`91760`.)

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

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

0 comments on commit 120cb18

Please sign in to comment.