469,621 Members | 1,685 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,621 developers. It's quick & easy.

Autoflush in python cgi

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


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

Andrew
da***@dalkescientific.com
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.