summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscrazzz <scruzism@mail.com>2023-01-21 08:53:54 (GMT)
committerGitHub <noreply@github.com>2023-01-21 08:53:54 (GMT)
commit120cb18c72677be5568e65d5441b08ce30915699 (patch)
treeced87a8df2a0d81e5c044f67dd3b299f935ba70d
parent3325f054e33b318aa56b74472f76a56b8afc0510 (diff)
downloadcpython-120cb18c72677be5568e65d5441b08ce30915699.zip
cpython-120cb18c72677be5568e65d5441b08ce30915699.tar.gz
cpython-120cb18c72677be5568e65d5441b08ce30915699.tar.bz2
Fix rst formatting in 3.12 What's New (#101110)
-rw-r--r--Doc/whatsnew/3.12.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 442a342..4d6d466 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -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)