Unbuffered stdout

Preston Landers prestonlanders at my-deja.com
Mon Nov 29 19:14:10 CET 1999


Do you have something equivelent to the following at the beginning of
your output routine?

print "Content-Type: text/html\n\n"

If you don't put this, you won't see anything with most combinations of
servers and browsers.

good luck,

---Preston

In article <81u1k2$27qkk$1 at oceanite.cybercable.fr>,
  "leon" <leonar_n at epita.fr> wrote:
> 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.
>
>

--
|| Preston Landers <prestonlanders at my-deja.com> ||


Sent via Deja.com http://www.deja.com/
Before you buy.




More information about the Python-list mailing list