bpo-43319: Fixed the tutorial on venv about standard library#24740
bpo-43319: Fixed the tutorial on venv about standard library#24740miss-islington merged 1 commit intopython:masterfrom cmhzc:master
Conversation
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). CLA MissingOur records indicate the following people have not signed the CLA: For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
|
From the abstract of PEP 405 (emphasis added):
By default, a |
The phrase I quoted is from the original tutorial, isn't it implying the virtual environment has its own standard lib? |
|
That's a fair point -- it does seem to imply it has its own copy of the standard library. I misunderstood what you were saying to mean that it didn't have access to the standard library. It also doesn't necessarily create a copy of the Python interpreter, but rather a symlink to the Python interpreter if it can, but if not, then a copy. I'm not sure if that detail is worth clarifying though. |
Yeah, I think the default behavior is to create a symbolic link if it can, but I'm not sure if that could be done on Windows. Since |
Misc/NEWS.d/next/Documentation/2021-03-04-04-55-16.bpo-43319.weh_qw.rst
Outdated
Show resolved
Hide resolved
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
I have made the requested changes; please review again. |
|
Thanks for making the requested changes! @vsajip: please review the changes made to this pull request. |
bpo-43319: Fixed the tutorial on venv about standard library (pythonGH-24740)
In the official tutorial on virtual environment
According to the actual behavior of
venvand PEP 405's description about virtual environment, no standard library file is included in the virtual environment's directory.https://bugs.python.org/issue43319
Automerge-Triggered-By: GH:vsajip