File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ Functions for sequences
257
257
.. versionchanged :: 3.11
258
258
259
259
The *population * must be a sequence. Automatic conversion of sets
260
- to lists is longer supported.
260
+ to lists is no longer supported.
261
261
262
262
263
263
.. _real-valued-distributions :
Original file line number Diff line number Diff line change @@ -705,6 +705,11 @@ Changes in the Python API
705
705
deprecated since Python 3.6.
706
706
(Contributed by Serhiy Storchaka in :issue: `47066 `.)
707
707
708
+ * The *population * parameter of :func: `random.sample ` must be a sequence.
709
+ Automatic conversion of sets to lists is no longer supported. If the sample size
710
+ is larger than the population size, a :exc: `ValueError ` is raised.
711
+ (Contributed by Raymond Hettinger in :issue: `40465 `.)
712
+
708
713
709
714
Build Changes
710
715
=============
You can’t perform that action at this time.
0 commit comments