diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-01-25 21:02:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 21:02:04 (GMT) |
commit | f066bd94b9225a5a3c4ade5fc3ff81e3c49b7b32 (patch) | |
tree | b2d22c54e628f087d86e9dfb0330ede92eb4a260 /Doc/whatsnew | |
parent | eb9983c59b0683270328b5c40a115bb028209511 (diff) | |
download | cpython-f066bd94b9225a5a3c4ade5fc3ff81e3c49b7b32.zip cpython-f066bd94b9225a5a3c4ade5fc3ff81e3c49b7b32.tar.gz cpython-f066bd94b9225a5a3c4ade5fc3ff81e3c49b7b32.tar.bz2 |
bpo-37319: Improve documentation, code and tests of randrange. (GH-19112)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.10.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index a6c3fbb..3026a1a 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -530,6 +530,10 @@ Deprecated as appropriate to help identify code which needs updating during this transition. +* Non-integer arguments to :func:`random.randrange` are deprecated. + The :exc:`ValueError` is deprecated in favor of a :exc:`TypeError`. + (Contributed by Serhiy Storchaka and Raymond Hettinger in :issue:`37319`.) + * The various ``load_module()`` methods of :mod:`importlib` have been documented as deprecated since Python 3.6, but will now also trigger a :exc:`DeprecationWarning`. Use |