In the deprecated functions I added an alert to review

specially a section of the subprocess documentation
that helps with the replacing of those functionss.
This commit is contained in:
Facundo Batista 2008-06-21 19:48:19 +00:00
parent a6a4d50efe
commit 74a6ba8f70
2 changed files with 16 additions and 7 deletions

View File

@ -362,7 +362,9 @@ These functions create new file objects. (See also :func:`open`.)
is returned. Availability: Macintosh, Unix, Windows.
.. deprecated:: 2.6
This function is obsolete. Use the :mod:`subprocess` module.
This function is obsolete. Use the :mod:`subprocess` module. Check
specially the *Replacing Older Functions with the subprocess Module*
section in that documentation page.
.. versionchanged:: 2.0
This function worked unreliably under Windows in earlier versions of Python.
@ -412,7 +414,8 @@ functions, see :ref:`popen2-flow-control`.
.. deprecated:: 2.6
All of the :func:`popen\*` functions are obsolete. Use the :mod:`subprocess`
module.
module. Check specially the *Replacing Older Functions with the
subprocess Module* section in that documentation page.
Availability: Macintosh, Unix, Windows.
@ -426,7 +429,8 @@ functions, see :ref:`popen2-flow-control`.
.. deprecated:: 2.6
All of the :func:`popen\*` functions are obsolete. Use the :mod:`subprocess`
module.
module. Check specially the *Replacing Older Functions with the
subprocess Module* section in that documentation page.
Availability: Macintosh, Unix, Windows.
@ -440,7 +444,8 @@ functions, see :ref:`popen2-flow-control`.
.. deprecated:: 2.6
All of the :func:`popen\*` functions are obsolete. Use the :mod:`subprocess`
module.
module. Check specially the *Replacing Older Functions with the
subprocess Module* section in that documentation page.
Availability: Macintosh, Unix, Windows.
@ -1707,7 +1712,8 @@ written in Python, such as a mail server's external command delivery program.
(Note that the :mod:`subprocess` module provides more powerful facilities for
spawning new processes and retrieving their results; using that module is
preferable to using these functions.)
preferable to using these functions. Check specially the *Replacing Older
Functions with the subprocess Module* section in that documentation page.)
If *mode* is :const:`P_NOWAIT`, this function returns the process id of the new
process; if *mode* is :const:`P_WAIT`, returns the process's exit code if it
@ -1842,7 +1848,8 @@ written in Python, such as a mail server's external command delivery program.
The :mod:`subprocess` module provides more powerful facilities for spawning new
processes and retrieving their results; using that module is preferable to using
this function.
this function. Check specially the *Replacing Older Functions with the
subprocess Module* section in that documentation page.
.. function:: times()

View File

@ -9,7 +9,9 @@
.. deprecated:: 2.6
This module is obsolete. Use the :mod:`subprocess` module.
This module is obsolete. Use the :mod:`subprocess` module. Check
specially the *Replacing Older Functions with the subprocess Module*
section in that documentation page.
This module allows you to spawn processes and connect to their
input/output/error pipes and obtain their return codes under Unix and Windows.