Antoine Pitrou <pitrou at free.fr> added the comment: Can you try the following: >>> f = open('LICENSE', 'rb') >>> f.flush() ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue8614> _______________________________________