Re: suggestion: implicit sys.stdout.flush with :print

Bram Moolenaar <[email protected]> Sun, 18 Jan 2004 12:35:35 +0100
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Scott Henry Harrison wrote:

> A suggestion. 
> 
> Would it make sense to make an implicit
> sys.stdout.flush() with :print commands? 
> 
> I doubt the performance penalty would
> be significant, and it might make the
> streaming output on their terminal more
> real-time (as well as actually seeing
> messages prompting for input). 

Output to a terminal should be automatically flushed at each newline.

In which situation do you see a problem with viewing the output?

-- 
This is the polymorph virus!  Follow these instructions carefully:
1. Send this message to everybody you know.
2. Format your harddisk.
Thank you for your cooperation in spreading the most powerful virus ever!

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn