Autoflush in python cgi

  • Thread starter Gianluca Trombetta
  • Start date
G

Gianluca Trombetta

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
 
A

Andrew Dalke

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
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top