Robert Collins added the comment: So something like for line in _state[0]: yield line while True: yield '' Will probably do it just fine. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue26807> _______________________________________