Autoflush in python cgi

Andrew Dalke adalke at
Wed Jun 2 03:13:04 CEST 2004

Gianluca Trombetta:
> How can i do the autoflush effect in a python cgi?

Start Python with the "-u" option.

Also, try a web search for "python autoflush" and you'll find expanded
answers, like using a wrapper around sys.stdout to do a flush after
every write

as well as some philosophy on why Python differs from Perl on this regard.

                    dalke at

More information about the Python-list mailing list