Christian Heimes added the comment: Guido van Rossum wrote: > Hmm... In internal_close() there's still a test for self->fd >= 0. I'm > not sure if this is an oversight or intentional.
I'll check it later. The patch still contains some debugging code that redirects stdout and stderr to a file when PY_STDERR_FILE is defined. > Also, I don't understand under what circumstances fds < 0 can occur. I > presume this is only on Windows. Can you point me to docs for this > fact? It happens when a script is run with pythonw.exe (pyw extension). PythonW.exe isn't a console application but a GUI app which doesn't create a console window. However GUI apps don't have valid standard streams because stdin, stdout and stderr aren't connected. Here are some links that shed some light on the problem: http://mail.python.org/pipermail/python-dev/2001-January/011423.html http://www.halcyon.com/~ast/dload/guicon.htm http://msdn2.microsoft.com/en-us/library/3x292kth(VS.80).aspx The patch creates another problem: http://bugs.python.org/issue1422 Christian __________________________________ 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