mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue 15265: document the exception raised for invalid sample sizes.
This commit is contained in:
parent
42a5f4a3f2
commit
86a20f834a
1 changed files with 3 additions and 0 deletions
|
@ -150,6 +150,9 @@ Functions for sequences:
|
|||
argument. This is especially fast and space efficient for sampling from a large
|
||||
population: ``sample(range(10000000), 60)``.
|
||||
|
||||
If the sample size is larger than the population size, a :exc:``ValueError``
|
||||
is raised.
|
||||
|
||||
The following functions generate specific real-valued distributions. Function
|
||||
parameters are named after the corresponding variables in the distribution's
|
||||
equation, as used in common mathematical practice; most of these equations can
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue