Tim Gordon <tim.py at aleph17.co.uk> added the comment: Try using the readline method instead of next. I don't think that applies the same buffering. _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue4633> _______________________________________