Buffering of sys.stdout and sys.stderr in python3 (and documentation)

swatkins at gmail.com swatkins at gmail.com
Tue Nov 12 06:53:45 CET 2013


> sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0)

which unfortunately doesn't work!  I guess will resort to python3 -u, although I don't want stdout to be unbuffered.



More information about the Python-list mailing list