Re: [Python-Dev] cpython: Issue #15283: Updated pyvenv documentation to expand on activation.
On Mon, 9 Jul 2012 10:25:58 +0200 (CEST) vinay.sajip wrote: > + > + Common installation tools such as ``distribute`` and ``pip`` work as > + expected with venvs - i.e. when a venv is active, they install Python > + packages into the venv without needing to be told to do so explicitly. Not exactly. They will do so if you *install* them in the venv. A system-wide distribute or pip, AFAIK, will still install packages into the system-wide locations. Also, I wonder why you are duplicating the exact same docs in two files. That's a maintenance burden. Regards Antoine. ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] 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 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(1000), 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 [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
