<br>Running python 2.3.4, on Windows XP<br><br>&nbsp;the popen2 docs show<br><br><a name="SECTION008800000000000000000">6.8 <tt class="module">popen2</tt> -- 
Subprocesses with accessible I/O streams</a><br><br><p>This module allows you to spawn processes and connect to their 
input/output/error pipes and <span style="font-weight: bold;">&gt;&gt;obtain their return codes under </span><font style="font-variant: small-caps; font-weight: bold;">Unix</font><span style="font-weight: bold;"> and Windows.&lt;&lt;
</span></p><br><p>Then it further goes to say</p><p>The only way to retrieve the return codes for the child processes is by using 
the <tt class="method">poll()</tt> or <tt class="method">wait()</tt> methods on the 
<tt class="class">Popen3</tt> and <tt class="class">Popen4</tt> classes; these are 
<span style="font-weight: bold;"><span style="font-weight: bold;"><br></span></span></p><p><span style="font-weight: bold;"><span style="font-weight: bold;">&gt;&gt;</span>only available on </span><font style="font-variant: small-caps; font-weight: bold;">
Unix&lt;&lt;</font>. <br></p><p>This 
information is not available when using the <tt class="function">popen2()</tt>, 
<tt class="function">popen3()</tt>, and <tt class="function">popen4()</tt> 
functions, or the equivalent functions in the <tt class="module"><a href="module-os.html">os</a></tt> module.</p><br><p>After having spent much time reading about the differences between the popen calls in the os module, and the popen calls in popen2, if the return values aren't available under windows, I'm confused.
<br></p><p>Why bother making these functions available under Windows at all? Other than the order of the return values, I don't see any advantage of one over the other.</p>Since the document contradicts itself regaring the return values on Windows, is there a way to get the return values or not?
<br>Is so- how?<br><br>Since poll and wait are only available on Unix, how do we wait for a process to finish under Windows?<br><br>thanks<br><br><br><br><p><br> </p><p><br> </p>