Unbuffered stdout

ScherBi at BAM.com ScherBi at BAM.com
Mon Nov 29 15:34:54 CET 1999


try using

#!/usr/bin/env python -u 

at the top of your scripts (assuming unix, or at least apache here)

see python --help for more info.

Bill



> -----Original Message-----
> From: leon [mailto:leonar_n at epita.fr]
> Sent: Monday, November 29, 1999 9:17 AM
> To: python-list at python.org
> Subject: Unbuffered stdout
> 
> 
> Hi there !
> 
> I'm developping an IRC like software which must work on the 
> Web. I can't use
> Java,
> and I'm using Python to program the CGI.
> But, I have a big problem : I don't know how to make the 
> stdout unbuffered.
> I tried to make some
>     sys.stdout.write("test")
>     sys.stdout.flush()
> but it don't work.
> 
> So any idea ??
> 
> 
> Leon.
> 
> 
> 
> -- 
> http://www.python.org/mailman/listinfo/python-list
> 




More information about the Python-list mailing list