Re: Extending Logger

2008-11-06 Thread Thomas Christensen
[EMAIL PROTECTED] writes: > I took a look to the logging module which was quite sexy at a first > sight, but then i finally realized the following : the Logger class > can't be extended since a Logger is created only with getLogger (the > subclass can't call/shouldn't call Logger.__init__()). > So

Can read() be non-blocking?

2008-11-06 Thread Thomas Christensen
This issue has been raised a couple of times I am sure. But I have yet to find a satisfying answer. I am reading from a subprocess and this subprocess sometimes hang, in which case a call to read() call will block indefinite, keeping me from killing it. The folloing sample code illustrates the p