Christian Heimes added the comment: Fixed in r58959
I followed your wish and set sys.stdin, stdout and stderr to None together with __std?__. I also kept the check for fd < 0 in fileio_init(). A negative fd still raises the correct error with errno 9 (bad file descriptor). ---------- resolution: -> fixed __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1415> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com