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
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
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",
> >
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.
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