Problem with CGI termination

Jeff Kunce kuncej at mail.conservation.state.mo.us
Tue Sep 19 10:51:28 EDT 2000


> It is because of the buffered output of your print statement.
> Use sys.stdout.flush() to force the output to the client and the
> page will immediately appear.

Also, python can be launched with the -u command line option,
which sets unbuffered binary output to stdout and stderr.
This is often useful with CGI.

  --Jeff





More information about the Python-list mailing list