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

Skip to content

Commit bcf7012

Browse files
committed
whatsnew: linkify some pip things, and explain why non-inheriting is good.
1 parent f446d7a commit bcf7012

3 files changed

Lines changed: 20 additions & 9 deletions

File tree

Doc/library/venv.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ Creating virtual environments
7676
without there needing to be any reference to its venv in ``PATH``.
7777

7878

79+
.. _venv-api:
80+
7981
API
8082
---
8183

Doc/using/unix.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ To install the newest Python versions on OpenSolaris, install `blastwave
6060
prompt.
6161

6262

63+
.. _building-python-on-unix:
64+
6365
Building Python
6466
===============
6567

Doc/whatsnew/3.4.rst

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,16 @@ By default, the scripts ``pipX`` and ``pipX.Y`` will be installed (where
193193
X.Y stands for the version of the Python installation), along with the
194194
``pip`` Python package and its dependencies.
195195

196-
The :mod:`venv` module and the :command:`pyvenv` utility make use of this
197-
module to make ``pip`` readily available in virtual environments. When
198-
using the command line interface, ``pip`` is installed by default, while
199-
for the module API installation of ``pip`` must be requested explicitly.
196+
The :ref:`pyvenv <scripts-pyvenv>` command line utility and the :mod:`venv`
197+
module make use of the :mod:`ensurepip` module to make ``pip`` readily
198+
available in virtual environments. When using the command line utility, ``pip``
199+
is installed by default, while when using the :mod:`venv` module
200+
:ref:`venv-api` installation of ``pip`` must be requested explicitly.
200201

201-
For CPython source builds on POSIX systems, the ``make install`` and
202-
``make altinstall`` commands bootstrap ``pip`` by default. This behaviour
203-
can be controlled through configure options, and overridden through
204-
Makefile options.
202+
For CPython :ref:`source builds on POSIX systems <building-python-on-unix>`,
203+
the ``make install`` and ``make altinstall`` commands bootstrap ``pip`` by
204+
default. This behaviour can be controlled through configure options, and
205+
overridden through Makefile options.
205206

206207
On Windows and Mac OS X, the CPython installers now offer the option to
207208
install ``pip`` along with CPython itself.
@@ -251,7 +252,13 @@ PEP 446: Newly Created File Descriptors Are Non-Inheritable
251252
-----------------------------------------------------------
252253

253254
:pep:`446` makes newly created file descriptors :ref:`non-inheritable
254-
<fd_inheritance>`. New functions and methods:
255+
<fd_inheritance>`. In general, this is the behavior an application will
256+
want: when launching a new process, having currently open files also
257+
open in the new process can lead to all sorts of hard to find bugs,
258+
and potentially to security issues.
259+
260+
However, there are occasions when inheritance is desired. To support
261+
these cases, the following new functions and methods are available:
255262

256263
* :func:`os.get_inheritable`, :func:`os.set_inheritable`
257264
* :func:`os.get_handle_inheritable`, :func:`os.set_handle_inheritable`

0 commit comments

Comments
 (0)