Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libos.tex @ 14915:ea2ba910e5f0 legacy-trunk
Updated documentation relating to the various flavors of popen[234]()
for Windows & Unix.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Thu, 28 Sep 2000 20:27:51 +0000 |
| parents | be2df9935edd |
| children | 9a8700fdc52b |
line wrap: on
line diff
--- a/Doc/lib/libos.tex Thu Sep 28 19:28:35 2000 +0000 +++ b/Doc/lib/libos.tex Thu Sep 28 20:27:51 2000 +0000 @@ -296,6 +296,36 @@ \end{funcdesc} +For each of these \function{popen()} variants, if \var{bufsize} is +specified, it specifies the buffer size for the I/O pipes. +\var{mode}, if provided, should be the string \code{'b'} or +\code{'t'}; on Windows this is needed to determine whether the file +objects should be opened in binary or text mode. The default value +for \var{mode} is \code{'t'}. + +\begin{funcdesc}{popen2}{cmd\optional{, bufsize\optional{, mode}}} +Executes \var{cmd} as a sub-process. Returns the file objects +\code{(\var{child_stdin}, \var{child_stdout})}. +\versionadded{2.0} +\end{funcdesc} + +\begin{funcdesc}{popen3}{cmd\optional{, bufsize\optional{, mode}}} +Executes \var{cmd} as a sub-process. Returns the file objects +\code{(\var{child_stdin}, \var{child_stdout}, \var{child_stderr})}. +\versionadded{2.0} +\end{funcdesc} + +\begin{funcdesc}{popen4}{cmd\optional{, bufsize\optional{, mode}}} +Executes \var{cmd} as a sub-process. Returns the file objects +\code{(\var{child_stdin}, \var{child_stdout_and_stderr})}. +\versionadded{2.0} +\end{funcdesc} + +This functionality is also available in the \refmodule{popen2} module +using functions of the same names, but the return values of those +functions have a different order. + + \subsection{File Descriptor Operations \label{os-fd-ops}} These functions operate on I/O streams referred to
