[Python-checkins] bpo-36275: enhance documentation for venv.create() (GH-13114)
Miss Islington (bot)
webhook-mailer at python.org
Mon May 6 15:26:11 EDT 2019
https://github.com/python/cpython/commit/9a03c773285fda707fc4ce9a69347b83afeeb49f
commit: 9a03c773285fda707fc4ce9a69347b83afeeb49f
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-05-06T12:25:59-07:00
summary:
bpo-36275: enhance documentation for venv.create() (GH-13114)
(cherry picked from commit 3921b1cc34c2fc8b8b480c19a95ec306de710fdd)
Co-authored-by: Sebastian Koslowski <sebastian.koslowski at gmail.com>
files:
M Doc/library/venv.rst
diff --git a/Doc/library/venv.rst b/Doc/library/venv.rst
index fefc522b45d16..d61df484f9e7e 100644
--- a/Doc/library/venv.rst
+++ b/Doc/library/venv.rst
@@ -239,14 +239,19 @@ creation according to their needs, the :class:`EnvBuilder` class.
There is also a module-level convenience function:
.. function:: create(env_dir, system_site_packages=False, clear=False, \
- symlinks=False, with_pip=False)
+ symlinks=False, with_pip=False, prompt=None)
Create an :class:`EnvBuilder` with the given keyword arguments, and call its
:meth:`~EnvBuilder.create` method with the *env_dir* argument.
+ .. versionadded:: 3.3
+
.. versionchanged:: 3.4
Added the ``with_pip`` parameter
+ .. versionchanged:: 3.6
+ Added the ``prompt`` parameter
+
An example of extending ``EnvBuilder``
--------------------------------------
More information about the Python-checkins
mailing list