]> granicus.if.org Git - python/commit
Fix for #1415 pythonw.exe fails because std streams a missing
authorChristian Heimes <christian@cheimes.de>
Tue, 13 Nov 2007 02:19:40 +0000 (02:19 +0000)
committerChristian Heimes <christian@cheimes.de>
Tue, 13 Nov 2007 02:19:40 +0000 (02:19 +0000)
commit58cb1b8b0ef200b7f7d4aba82642a63ce7532545
tree629216d60c66aaf168ee0f4903824213fcf4637f
parentf05149a257560144cbaaea3e96c404803dbf26e4
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.
Doc/library/sys.rst
Misc/NEWS
Objects/fileobject.c
Python/pythonrun.c