Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87ed599

Browse files
committed
Issue #16378: Updated docstrings to reflect the defaults present in the code.
1 parent 000bd42 commit 87ed599

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Lib/venv/__init__.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ class EnvBuilder:
5454
behaviour when called upon to create a virtual environment.
5555
5656
By default, the builder makes the system (global) site-packages dir
57-
available to the created environment.
57+
*un*available to the created environment.
5858
59-
By default, the creation process uses symlinks wherever possible.
59+
If invoked using the Python -m option, the default is to use copying
60+
on Windows platforms but symlinks elsewhere. If instantiated some
61+
other way, the default is to *not* use symlinks.
6062
6163
:param system_site_packages: If True, the system (global) site-packages
6264
dir is available to created environments.
@@ -322,8 +324,9 @@ def create(env_dir, system_site_packages=False, clear=False, symlinks=False):
322324
"""
323325
Create a virtual environment in a directory.
324326
325-
By default, makes the system (global) site-packages dir available to
326-
the created environment.
327+
By default, makes the system (global) site-packages dir *un*available to
328+
the created environment, and uses copying rather than symlinking for files
329+
obtained from the source Python installation.
327330
328331
:param env_dir: The target directory to create an environment in.
329332
:param system_site_packages: If True, the system (global) site-packages

0 commit comments

Comments
 (0)