Re: suggestion: implicit sys.stdout.flush with :print
Bram Moolenaar <[email protected]> Sun, 18 Jan 2004 15:13:01 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Scott Harrison wrote:
> > > Would it make sense to make an implicit
> > > sys.stdout.flush() with :print commands?
> > Output to a terminal should be automatically flushed at each newline.
> > In which situation do you see a problem with viewing the output?
>
> In the example below, at the end of it where I have a commented
> out sys.stdout.flush().
[example removed]
I tried executing this with only the ":print" commands and then calling
raw_input(), but for me the text is printed as expected.
Is there something special about your environment? I would not know why
Python doesn't flush output to the terminal as it should.
--
MORTICIAN: Bring out your dead!
[clang]
Bring out your dead!
[clang]
Bring out your dead!
CUSTOMER: Here's one -- nine pence.
DEAD PERSON: I'm not dead!
The Quest for the Holy Grail (Monty Python)
/// 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