Serhiy Storchaka added the comment: Since 29ba6c399090 stdout and stderr flush upon exit. But any errors on flushing were swallowed. Since 4ca497f4819c (issue5319) an error is printed if stdout flushing fails.
FlushFile doesn't provide all methods and attributes of io.TextIOBase. But it is not required that sys.stdout should be an instance of io.TextIOBase or provide the flush() method. I suppose this is either not a bug or documentation issue. ---------- components: -Windows nosy: +pitrou, serhiy.storchaka versions: +Python 3.4, Python 3.5 -Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12020> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com