Jp Calderone wrote:
> On Wed, 15 Jun 2005 16:38:32 +0100, Robin Becker <[EMAIL PROTECTED]> wrote:
>
>>Michael Hoffman wrote:
>>.
>>
>>>Well, you could use python -u:
>>>
>>
>>unfortunately this is in a detached process and I am just reopening stdout
>>as an ordinary file so another process can
On Wed, 15 Jun 2005 16:38:32 +0100, Robin Becker <[EMAIL PROTECTED]> wrote:
>Michael Hoffman wrote:
>.
>>
>> Well, you could use python -u:
>>
>
>unfortunately this is in a detached process and I am just reopening stdout
>as an ordinary file so another process can do tail -F on it. I imagine th
Michael Hoffman wrote:
.
>
> Well, you could use python -u:
>
unfortunately this is in a detached process and I am just reopening stdout
as an ordinary file so another process can do tail -F on it. I imagine ther
ought to be an os dependant way to set the file as unbuffered, but can't
reme
Robin Becker wrote:
> I recently tried to create a line flushing version of sys.stdout using
>
> class LineFlusherFile(file):
> def write(self,s):
> file.write(self,s)
> if '\n' in s:
> self.flush()
>
> but it seems that an 'optimization' prevents the overriden wri
I recently tried to create a line flushing version of sys.stdout using
class LineFlusherFile(file):
def write(self,s):
file.write(self,s)
if '\n' in s:
self.flush()
but it seems that an 'optimization' prevents the overriden write method from
being used. I had