Autoflush in python cgi

Andrew Dalke adalke at mindspring.com
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
  http://www.faqts.com/knowledge_base/view.phtml/aid/4419

as well as some philosophy on why Python differs from Perl on this regard.
http://groups.google.com/groups?q=autoflush+python&hl=en&lr=&ie=UTF-8&selm=0
00701be54bc%2438bf5280%24a39e2299%40tim&rnum=2

                    Andrew
                    dalke at dalkescientific.com





More information about the Python-list mailing list