Re: Need feedback on subprocess-using function

2009-10-09 Thread gb345
In pan.2009.10.07.03.27.32.844...@nowhere.com Nobody nob...@nowhere.com 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. --

Re: Need feedback on subprocess-using function

2009-10-05 Thread ryles
On Oct 4, 9:46 pm, Nobody nob...@nowhere.com 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

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. (The

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