]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix rst formatting in 3.12 What's New (#101110)
authorscrazzz <scruzism@mail.com>
Sat, 21 Jan 2023 08:53:54 +0000 (11:53 +0300)
committerGitHub <noreply@github.com>
Sat, 21 Jan 2023 08:53:54 +0000 (14:23 +0530)
Doc/whatsnew/3.12.rst

index 442a3421f711507c3617b7f78c2e93bc415ba15d..4d6d4669d0c70bafae2e4d5253bd78296d8dc7e8 100644 (file)
@@ -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)