bpo-36275: enhance documentation for venv.create() (GH-13114) · python/cpython@3921b1c

Original file line numberDiff line numberDiff line change

@@ -234,14 +234,19 @@ creation according to their needs, the :class:`EnvBuilder` class.

234234

There is also a module-level convenience function:

235235
236236

.. function:: create(env_dir, system_site_packages=False, clear=False, \

237-

symlinks=False, with_pip=False)

237+

symlinks=False, with_pip=False, prompt=None)

238238
239239

Create an :class:`EnvBuilder` with the given keyword arguments, and call its

240240

:meth:`~EnvBuilder.create` method with the *env_dir* argument.

241241
242+

.. versionadded:: 3.3

243+
242244

.. versionchanged:: 3.4

243245

Added the ``with_pip`` parameter

244246
247+

.. versionchanged:: 3.6

248+

Added the ``prompt`` parameter

249+
245250

An example of extending ``EnvBuilder``

246251

--------------------------------------

247252