commit | 58cb1b8b0ef200b7f7d4aba82642a63ce7532545 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Tue Nov 13 02:19:40 2007 +0000 |
committer | Christian Heimes <christian@cheimes.de> | Tue Nov 13 02:19:40 2007 +0000 |
tree | 629216d60c66aaf168ee0f4903824213fcf4637f | |
parent | f05149a257560144cbaaea3e96c404803dbf26e4 [diff] |
Fix for #1415 pythonw.exe fails because std streams a missing After a long discussion about the problem with Windows GUI apps Guido decided that sys.stdin, stdout and stderr should be None when the C runtime library returns invalid file descriptors for the standard streams. So far the only known cases are Windows GUI apps and scripts started with pythonw on Windows. The OS restrictions are tight enough to catch the problem on other OSes.