Interactive unbuffered STDOUT
Kevin Smith
Kevin.Smith at sas.com
Wed Dec 5 10:40:24 EST 2001
Is there a way that sys.stdout can be switched to unbuffered during execution?
I know that you can set the PYTHONUNBUFFERED environment variable or use the
-u option, but those have to be done before the interpretter is loaded.
I see that there is a bufsize option on the open() function. If I could
recreate sys.stdout with bufsize=0, that would be great.
Kevin Smith
Kevin.Smith at sas.com
More information about the Python-list
mailing list