mode parameter in popen2-4

Tobiah toby at tobiah.org
Mon Aug 20 22:26:57 CEST 2007


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 because
binary mode can still be turned on and off this way?

Thanks,

Tobiah

-- 
Posted via a free Usenet account from http://www.teranews.com




More information about the Python-list mailing list