@@ -86,8 +86,8 @@ Bookkeeping functions
8686 .. versionchanged :: 3.2
8787 Moved to the version 2 scheme which uses all of the bits in a string seed.
8888
89- .. deprecated :: 3.9
90- In the future, the *seed * must be one of the following types:
89+ .. versionchanged :: 3.11
90+ The *seed * must be one of the following types:
9191 *NoneType *, :class: `int `, :class: `float `, :class: `str `,
9292 :class: `bytes `, or :class: `bytearray `.
9393
@@ -208,13 +208,10 @@ Functions for sequences
208208 Raises a :exc: `ValueError ` if all weights are zero.
209209
210210
211- .. function :: shuffle(x[, random] )
211+ .. function :: shuffle(x)
212212
213213 Shuffle the sequence *x * in place.
214214
215- The optional argument *random * is a 0-argument function returning a random
216- float in [0.0, 1.0); by default, this is the function :func: `.random `.
217-
218215 To shuffle an immutable sequence and return a new shuffled list, use
219216 ``sample(x, k=len(x)) `` instead.
220217
@@ -230,8 +227,8 @@ Functions for sequences
230227
231228.. function :: sample(population, k, *, counts=None)
232229
233- Return a *k * length list of unique elements chosen from the population sequence
234- or set. Used for random sampling without replacement.
230+ Return a *k * length list of unique elements chosen from the population
231+ sequence. Used for random sampling without replacement.
235232
236233 Returns a new list containing elements from the population while leaving the
237234 original population unchanged. The resulting list is in selection order so that
@@ -257,11 +254,10 @@ Functions for sequences
257254 .. versionchanged :: 3.9
258255 Added the *counts * parameter.
259256
260- .. deprecated :: 3.9
261- In the future, the *population * must be a sequence. Instances of
262- :class: `set ` are no longer supported. The set must first be converted
263- to a :class: `list ` or :class: `tuple `, preferably in a deterministic
264- order so that the sample is reproducible.
257+ .. versionchanged :: 3.11
258+
259+ The *population * must be a sequence. Automatic conversion of sets
260+ to lists is longer supported.
265261
266262
267263.. _real-valued-distributions :
0 commit comments