Ulrich Eckhardt <eckha...@satorlaser.com> added the comment: I don't really know what happens when you try to read()/fread() from stdin that is a directory, but I guess it will fail quickly even without an explicit check by Python. A directory can be opened under win32 just like a file, so I guess that you could also set one as stdin for a process. All in all, I don't care whether the check is made or not, but it doesn't hurt to be there either.
I'll submit a changed patch that has the opening curly brackets outside the conditional code. Thanks for the review, Martin, I appreciate your support on this. _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4915> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com