[Python-checkins] CVS: python/dist/src/Doc/lib libos.tex,1.56,1.57

Fred L. Drake fdrake@users.sourceforge.net
Mon, 11 Jun 2001 08:21:50 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv2313/lib

Modified Files:
	libos.tex 
Log Message:

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.


Index: libos.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libos.tex,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -r1.56 -r1.57
*** libos.tex	2001/06/04 15:31:17	1.56
--- libos.tex	2001/06/11 15:21:48	1.57
***************
*** 315,319 ****
  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})}.
--- 315,319 ----
  for \var{mode} is \code{'t'}.
  
! \begin{funcdesc}{popen2}{cmd\optional{, mode\optional{, bufsize}}}
  Executes \var{cmd} as a sub-process.  Returns the file objects
  \code{(\var{child_stdin}, \var{child_stdout})}.
***************
*** 321,325 ****
  \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})}.
--- 321,325 ----
  \end{funcdesc}
  
! \begin{funcdesc}{popen3}{cmd\optional{, mode\optional{, bufsize}}}
  Executes \var{cmd} as a sub-process.  Returns the file objects
  \code{(\var{child_stdin}, \var{child_stdout}, \var{child_stderr})}.
***************
*** 327,331 ****
  \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})}.
--- 327,331 ----
  \end{funcdesc}
  
! \begin{funcdesc}{popen4}{cmd\optional{, mode\optional{, bufsize}}}
  Executes \var{cmd} as a sub-process.  Returns the file objects
  \code{(\var{child_stdin}, \var{child_stdout_and_stderr})}.
***************
*** 928,931 ****
--- 928,939 ----
  Availability: \UNIX{}.
  \end{funcdesc}
+ 
+ \begin{funcdescni}{popen}{\unspecified}
+ \funclineni{popen2}{\unspecified}
+ \funclineni{popen3}{\unspecified}
+ \funclineni{popen4}{\unspecified}
+ Run child processes, returning opened pipes for communications.  These
+ functions are described in section \ref{os-newstreams}.
+ \end{funcdescni}
  
  \begin{funcdesc}{spawnv}{mode, path, args}