Peter Kleiweg <pkleiweg at xs4all.nl> added the comment: Why not simply: fp = sys.stdin.detach() ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue4953> _______________________________________