.. versionchanged:: 3.11
The *population* must be a sequence. Automatic conversion of sets
- to lists is longer supported.
+ to lists is no longer supported.
.. _real-valued-distributions:
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
=============