Connecting Tech Pros Worldwide Help | Site Map

Autoflush in python cgi

Gianluca Trombetta
Guest
 
Posts: n/a
#1: Jul 18 '05
How can i do the autoflush effect in a python cgi?
In perl i know how do that but not in python...
Can anyone help me?

Thanks in advance
Gianluca Trombetta




Andrew Dalke
Guest
 
Posts: n/a
#2: Jul 18 '05

re: Autoflush in python cgi


Gianluca Trombetta:[color=blue]
> How can i do the autoflush effect in a python cgi?[/color]

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=au...e=UTF-8&selm=0
00701be54bc%2438bf5280%24a39e2299%40tim&rnum=2

Andrew
dalke@dalkescientific.com


Closed Thread