setvbuf() ??

Alex Martelli aleaxit at yahoo.com
Thu Mar 29 03:52:30 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?

Running the python interpreter with a -u command line switch turns
buffering off.  That is generally the easiest way, if applicable.


Alex






More information about the Python-list mailing list