diff options
author | Tomáš Hrnčiar <thrnciar@redhat.com> | 2022-03-24 13:22:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 13:22:58 (GMT) |
commit | 12c0012cf97d21bc637056983ede0eaf4c0d9c33 (patch) | |
tree | e99513a6d5199f1605160083e05d44389431c012 /Doc/whatsnew | |
parent | 3354245daf89ca2c760c2c3e5b69a571f25073ed (diff) | |
download | cpython-12c0012cf97d21bc637056983ede0eaf4c0d9c33.zip cpython-12c0012cf97d21bc637056983ede0eaf4c0d9c33.tar.gz cpython-12c0012cf97d21bc637056983ede0eaf4c0d9c33.tar.bz2 |
bpo-40465: Document random module changes in 3.11 What's new (#31818)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index fe6c2e2..b2fdb48 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -705,6 +705,11 @@ Changes in the Python API deprecated since Python 3.6. (Contributed by Serhiy Storchaka in :issue:`47066`.) +* The *population* parameter of :func:`random.sample` must be a sequence. + Automatic conversion of sets to lists is no longer supported. If the sample size + is larger than the population size, a :exc:`ValueError` is raised. + (Contributed by Raymond Hettinger in :issue:`40465`.) + Build Changes ============= |