getting CGI output

Jason Orendorff jason at jorendorff.com
Wed Jan 16 16:16:02 EST 2002


> Does anybody know how to display output from a CGI program to the
> webpage as the program is running? 
>
> [...]
>
> If I remember right, you had to copy sys.stdout and modify it somehow.

Just do sys.stdout.flush() whenever you want the output to be sent.

## Jason Orendorff    http://www.jorendorff.com/




More information about the Python-list mailing list