]> granicus.if.org Git - python/commitdiff
Start section for PEP 324
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 12 Oct 2004 15:58:02 +0000 (15:58 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 12 Oct 2004 15:58:02 +0000 (15:58 +0000)
Doc/whatsnew/whatsnew24.tex

index 03d6b49cef28dc4d309665e1f73866c299675c4d..b4293e6cd9ec563936c007893e5749e518e50815 100644 (file)
@@ -426,6 +426,28 @@ root:*:0:0:System Administrator:/var/root:/bin/tcsh
 \end{seealso}
 
 
+%======================================================================
+\section{PEP 324: New subprocess Module}
+
+The standard library provides a number of ways to 
+execute a subprocess, each of which offers different features and 
+levels of difficulty.  \function{os.system(\var{command})} is easy, but 
+slow -- it runs a shell process which executes the command -- 
+and dangerous -- you have to be careful about escaping metacharacters.
+The \module{popen2} module offers classes that can capture 
+standard output and standard error from the subprocess, but the naming 
+is confusing.
+
+The \module{subprocess} module cleans all this up, providing a unified 
+interface that offers all the features you might need.
+
+% XXX finish writing this section by adding some examples
+
+
+\begin{seealso}
+\seepep{324}{subprocess - New process module}{Written and implemented by Peter Astrand, with assistance from Fredrik Lundh and others.}
+\end{seealso}
+
 %======================================================================
 \section{PEP 327: Decimal Data Type}