diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-01-25 23:02:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 23:02:04 +0200 |
commit | f066bd94b9225a5a3c4ade5fc3ff81e3c49b7b32 (patch) | |
tree | b2d22c54e628f087d86e9dfb0330ede92eb4a260 /Misc | |
parent | bpo-42869: Avoid an HTTP redirection. (GH-24174) (diff) | |
download | cpython-f066bd94b9225a5a3c4ade5fc3ff81e3c49b7b32.tar.gz cpython-f066bd94b9225a5a3c4ade5fc3ff81e3c49b7b32.tar.bz2 cpython-f066bd94b9225a5a3c4ade5fc3ff81e3c49b7b32.zip |
bpo-37319: Improve documentation, code and tests of randrange. (GH-19112)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/3.10.0a4.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Misc/NEWS.d/3.10.0a4.rst b/Misc/NEWS.d/3.10.0a4.rst index 882e03d8216..57da9254587 100644 --- a/Misc/NEWS.d/3.10.0a4.rst +++ b/Misc/NEWS.d/3.10.0a4.rst @@ -605,12 +605,12 @@ deprecated in Python 3.7. Patch by Erlend E. Aasland .. nonce: Cfl1eR .. section: Library -Harmonized random.randrange() argument handling to match range(). +Harmonized :func:`random.randrange` argument handling to match :func:`range`. -* The integer test and conversion in randrange() now uses - operator.index(). -* Non-integer arguments to randrange() are deprecated. -* The *ValueError* is deprecated in favor of a *TypeError*. +* The integer test and conversion in ``randrange()`` now uses + :func:`operator.index`. +* Non-integer arguments to ``randrange()`` are deprecated. +* The ``ValueError`` is deprecated in favor of a ``TypeError``. * It now runs a little faster than before. (Contributed by Raymond Hettinger and Serhiy Storchaka.) |