Re: Need feedback on subprocess-using function

2009-10-09 Thread gb345
In Nobody writes: >You could always lift the code from Popen._communicate(), which uses >threads for Windows and select() for POSIX. Thanks. A lot of useful advice in your replies. G. -- http://mail.python.org/mailman/listinfo/python-list

Re: Need feedback on subprocess-using function

2009-10-06 Thread Nobody
On Mon, 05 Oct 2009 02:29:38 -0700, ryles wrote: >> If you want a "double-ended" slave process, you need to use polling or >> non-blocking I/O or asynchronous I/O or multiple threads. I'm not aware of >> any single solution which works on all platforms. >> >> The easiest way around this problem is

Re: Need feedback on subprocess-using function

2009-10-05 Thread ryles
On Oct 4, 9:46 pm, Nobody wrote: > On Sat, 03 Oct 2009 13:21:00 +, gb345 wrote: > > I'm relatively new to Python, and I'm trying to get the hang of > > using Python's subprocess module.  As an exercise, I wrote the Tac > > class below, which can prints output to a file "in reverse order", > >

Re: Need feedback on subprocess-using function

2009-10-04 Thread Nobody
On Sat, 03 Oct 2009 13:21:00 +, gb345 wrote: > I'm relatively new to Python, and I'm trying to get the hang of > using Python's subprocess module. As an exercise, I wrote the Tac > class below, which can prints output to a file "in reverse order", > by piping it through the Unix tac utility.

Need feedback on subprocess-using function

2009-10-03 Thread gb345
I'm relatively new to Python, and I'm trying to get the hang of using Python's subprocess module. As an exercise, I wrote the Tac class below, which can prints output to a file "in reverse order", by piping it through the Unix tac utility. (The idea is to delegate the problem of managing the m