Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev

Re: cpython: Issue 15265: document the exception raised for invalid sample sizes.

 

 

Python dev RSS feed   Index | Next | Previous | View Threaded


g.brandl at gmx

Jul 9, 2012, 3:21 AM

Post #1 of 1 (116 views)
Permalink
Re: cpython: Issue 15265: document the exception raised for invalid sample sizes.

On 09.07.2012 01:02, raymond.hettinger wrote:
> http://hg.python.org/cpython/rev/72174d8af3ba
> changeset: 78015:72174d8af3ba
> user: Raymond Hettinger <python [at] rcn>
> date: Sun Jul 08 16:01:53 2012 -0700
> summary:
> Issue 15265: document the exception raised for invalid sample sizes.
>
> files:
> Doc/library/random.rst | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
>
> diff --git a/Doc/library/random.rst b/Doc/library/random.rst
> --- a/Doc/library/random.rst
> +++ b/Doc/library/random.rst
> @@ -150,6 +150,9 @@
> 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``

Should be :exc:`ValueError` (one set of quotes only).

Georg

_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Python dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.