diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-10-27 14:53:41 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-10-27 14:53:41 (GMT) |
commit | d3aad0199e5a6dc8e4907210daa89fc32bb57c94 (patch) | |
tree | 6a874997c1c8085876739f9afb82674f2d8990dc /Doc/lib/libpopen2.tex | |
parent | 1f3ebe0b1063d41827161d641fe190aab0eed82a (diff) | |
download | cpython-d3aad0199e5a6dc8e4907210daa89fc32bb57c94.zip cpython-d3aad0199e5a6dc8e4907210daa89fc32bb57c94.tar.gz cpython-d3aad0199e5a6dc8e4907210daa89fc32bb57c94.tar.bz2 |
Point users to the subprocess module in the docs for os.system, os.spawn*, os.popen2, and the popen2 and commands modules
Diffstat (limited to 'Doc/lib/libpopen2.tex')
-rw-r--r-- | Doc/lib/libpopen2.tex | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Doc/lib/libpopen2.tex b/Doc/lib/libpopen2.tex index 985f580..fa0c1a6 100644 --- a/Doc/lib/libpopen2.tex +++ b/Doc/lib/libpopen2.tex @@ -11,10 +11,10 @@ This module allows you to spawn processes and connect to their input/output/error pipes and obtain their return codes under \UNIX{} and Windows. -Note that starting with Python 2.0, this functionality is available -using functions from the \refmodule{os} module which have the same -names as the factory functions here, but the order of the return -values is more intuitive in the \refmodule{os} module variants. +The \module{subprocess} module provides more powerful facilities for +spawning new processes and retrieving their results. Using the +\module{subprocess} module is preferable to using the \module{popen2} +module. The primary interface offered by this module is a trio of factory functions. For each of these, if \var{bufsize} is specified, @@ -184,3 +184,7 @@ integrate I/O over pipes with their \function{select()} loops, or use separate threads to read each of the individual files provided by whichever \function{popen*()} function or \class{Popen*} class was used. + +\begin{seealso} + \seemodule{subprocess}{Module for spawning and managing subprocesses.} +\end{seealso} |