Controlling processes (popen2)

D'Arcy J.M. Cain darcy at vex.net
Sat Dec 30 12:53:06 EST 2000


Daniel Klein <DanielK at aracnet.com> wrote:
> The problem is that in Python I have to terminate all output to the BASIC
> process with a \r (rather than \n). In Java, I can use either \n or \r.

I don't use Windows or BASIC so this is just a hunch.  What happens if
you popen with "wt" as the second argument?  That extra 't' is benign
under Unix.

-- 
D'Arcy J.M. Cain <darcy at vex.net>           |  Democracy is three wolves
http://www.vex.net/                        |  and a sheep voting on         
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



More information about the Python-list mailing list