]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43319: Fixed the tutorial on venv about standard library (GH-24740)
authorcmhzc <chmhzc@126.com>
Sun, 7 Mar 2021 09:08:50 +0000 (17:08 +0800)
committerGitHub <noreply@github.com>
Sun, 7 Mar 2021 09:08:50 +0000 (01:08 -0800)
In the [official tutorial on virtual environment](https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments)

> This will create the tutorial-env directory if it doesn’t exist, and also create directories inside it containing a copy of the Python interpreter, **the standard library**, and various supporting files.

According to the actual behavior of `venv` and [PEP 405](https://www.python.org/dev/peps/pep-0405/#id15)'s description about virtual environment, no standard library file is included in the virtual environment's directory.

Automerge-Triggered-By: GH:vsajip
Doc/tutorial/venv.rst

index f422146aae8a30ec2565a00b6420cc1f12697696..c4ae6b6e9931feb198a1db830ebb521e4c5b256d 100644 (file)
@@ -48,7 +48,7 @@ place it, and run the :mod:`venv` module as a script with the directory path::
 
 This will create the ``tutorial-env`` directory if it doesn't exist,
 and also create directories inside it containing a copy of the Python
-interpreter, the standard library, and various supporting files.
+interpreter and various supporting files.
 
 A common directory location for a virtual environment is ``.venv``.
 This name keeps the directory typically hidden in your shell and thus