I found this. http://mail.python.org/pipermail/python-list/2006-September/359296.html You cannot flush input. The flush method only relates to output. The *other* side of the file has to flush *its* output in order for you to see it as input.