Charles-François Natali added the comment: > Why not using os.fstat() instead of os.dup() to check if a file descriptor is > open or not?
I asked myself the same question, but IIRC, fstat() doesn't always work on Windows (of course). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18174> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com