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

Skip to content

Commit 046f4d8

Browse files
committed
Fixed parameter order for os.popen2(), os.popen3(), and os.popen(4). Added
a reference to these functions and popen() from the "Process Management" section. Based on a suggestion from comp.lang.python.
1 parent c115835 commit 046f4d8

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

Doc/lib/libos.tex

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,19 +314,19 @@ \subsection{File Object Creation \label{os-newstreams}}
314314
objects should be opened in binary or text mode. The default value
315315
for \var{mode} is \code{'t'}.
316316

317-
\begin{funcdesc}{popen2}{cmd\optional{, bufsize\optional{, mode}}}
317+
\begin{funcdesc}{popen2}{cmd\optional{, mode\optional{, bufsize}}}
318318
Executes \var{cmd} as a sub-process. Returns the file objects
319319
\code{(\var{child_stdin}, \var{child_stdout})}.
320320
\versionadded{2.0}
321321
\end{funcdesc}
322322

323-
\begin{funcdesc}{popen3}{cmd\optional{, bufsize\optional{, mode}}}
323+
\begin{funcdesc}{popen3}{cmd\optional{, mode\optional{, bufsize}}}
324324
Executes \var{cmd} as a sub-process. Returns the file objects
325325
\code{(\var{child_stdin}, \var{child_stdout}, \var{child_stderr})}.
326326
\versionadded{2.0}
327327
\end{funcdesc}
328328

329-
\begin{funcdesc}{popen4}{cmd\optional{, bufsize\optional{, mode}}}
329+
\begin{funcdesc}{popen4}{cmd\optional{, mode\optional{, bufsize}}}
330330
Executes \var{cmd} as a sub-process. Returns the file objects
331331
\code{(\var{child_stdin}, \var{child_stdout_and_stderr})}.
332332
\versionadded{2.0}
@@ -928,6 +928,14 @@ \subsection{Process Management \label{os-process}}
928928
Availability: \UNIX{}.
929929
\end{funcdesc}
930930

931+
\begin{funcdescni}{popen}{\unspecified}
932+
\funclineni{popen2}{\unspecified}
933+
\funclineni{popen3}{\unspecified}
934+
\funclineni{popen4}{\unspecified}
935+
Run child processes, returning opened pipes for communications. These
936+
functions are described in section \ref{os-newstreams}.
937+
\end{funcdescni}
938+
931939
\begin{funcdesc}{spawnv}{mode, path, args}
932940
Execute the program \var{path} in a new process, passing the arguments
933941
specified in \var{args} as command-line parameters. \var{args} may be

0 commit comments

Comments
 (0)