[Python-checkins] bpo-43319: Fixed the tutorial on venv about standard library (GH-24740)

miss-islington webhook-mailer at python.org
Sun Mar 7 04:08:58 EST 2021


https://github.com/python/cpython/commit/8d00462850b32da4649c3403692ed5515e6a96d1
commit: 8d00462850b32da4649c3403692ed5515e6a96d1
branch: master
author: cmhzc <chmhzc at 126.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-03-07T01:08:50-08:00
summary:

bpo-43319: Fixed the tutorial on venv about standard library (GH-24740)



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

files:
M Doc/tutorial/venv.rst

diff --git a/Doc/tutorial/venv.rst b/Doc/tutorial/venv.rst
index f422146aae8a3..c4ae6b6e9931f 100644
--- a/Doc/tutorial/venv.rst
+++ b/Doc/tutorial/venv.rst
@@ -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



More information about the Python-checkins mailing list