!! Non blocking IO !!
Pierre Saloni
me at nospam.com
Thu Sep 30 12:03:05 EDT 1999
>
>an alternative solution is to use an autoflushing
>wrapper:
>
>class AutoFlush:
> def __init__(self, stream):
> self.stream = stream
> def write(self, text):
> self.stream.write(text)
> self.stream.flush()
>
>import sys
>
>sys.stdout = AutoFlush(sys.stdout)
>sys.stderr = AutoFlush(sys.stderr)
>
>print "hello"
>
Thanks a million !
That is exactly what i wanted for my needs ...
Thanks again !
P. Saloni
More information about the Python-list
mailing list