Re: mode parameter in popen2-4

2007-08-20 Thread Gabriel Genellina
On 20 ago, 17:26, Tobiah <[EMAIL PROTECTED]> wrote: > In the popen docs, a file like object is returned, > and may be read to or written to depending on the > 'mode' parameter ('r', or 'w'). > > Why is the mode parameter needed for popen2 and greater, > when both a stdin and stdout object is retur

mode parameter in popen2-4

2007-08-20 Thread Tobiah
In the popen docs, a file like object is returned, and may be read to or written to depending on the 'mode' parameter ('r', or 'w'). Why is the mode parameter needed for popen2 and greater, when both a stdin and stdout object is returned? One wouldn't want to 'append' to a stream is it becau