setvbuf() ??

Steve Holden sholden at holdenweb.com
Wed Mar 28 19:57:57 EST 2001


"Wayne Cuddy" <wcuddy at lserv.ja10629.home> wrote in message
news:slrn9c50mp.me7.wcuddy at lserv.ja10629.home...
> I need to print a period on an xterm every few seconds to provide status
to the
> user, I don't want to force a newline.  How do I turn off line buffering
for
> standard out?
>
If you're writing the xterm as a file I would have thought the file.flush()
function would do this for you.

regards
 Steve






More information about the Python-list mailing list