Raymond Hettinger added the comment: I had in mind a pre-opened file like sys.stderr or sys.stdout. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue28864> _______________________________________