From: c.evans at clear.net.nz (Carey Evans)
Date: 25 Apr 1999 18:14:01 +1200
Subject: help with os.popen()
References: <7fomaj$oo9$1@nnrp1.dejanews.com> <000301be8e0c$d71ff4a0$f09e2299@tim>
Message-ID: <87yajhxm52.fsf@psyche.evansnet>
X-UID: 1170                                                  

"Tim Peters" <tim_one at email.msn.com> writes:

[snip - about popen() on Win32]

> I'll figure this all out if I ever get a free year <0.7 wink>.

Why bother?  The Tcl people have done it already, I've had very few
problems with pipes there, and it's under a generous license.  There's
some interesting comments in tclWinPipe.c and stub16.c too, and an
amazing number of special cases.

I'd be eternally grateful[1] if pipes worked as well in Python as they
do in Tcl, although I suppose I could try rewriting tclWinPipe.c using
the Win32 extensions.  Actually, it would be quite nice if I could
just get the return value from os.system() or os.spawnv() like I can
from Tcl's "exec".

[1] I'd buy the author a drink if I met them, anyway.

-- 
	 Carey Evans  http://home.clear.net.nz/pages/c.evans/

"these are not inherent flaws in [NT] -- they don't happen by accident.
 They are the result of deliberate and well-thought-out efforts." - MS




