Terry J. Reedy <tjre...@udel.edu> added the comment:

In 3.2.2, starting IDLE from a Command Prompt, I get the same error as Denver. 
Starting IDLE 'normally', from the icon, there is no error. So even though 
Command Prompt detaches pythonw in some way and gives me a new prompt to do 
something else, there is something different about the pythonw process that 
trips up subprocess.

Changing ["python", "-c", "print(32)"] to ["notepad"] gives the same result. 
Running in the interactive interpreted eliminated the error. So does changing 
stdin=None to stdin=subprocess.PIPE eliminates the error and brings up Notepad, 
which seems to operate normally. (I am guessing that it ignores stdin, etc.).

I see that that the latter was known in the original post and plausibly 
diagnosed by Trent Mick, but never fixed because it was not obvious how to do 
so.

Can the WindowsError be caught in subproccess, and if it is this error (6), 
follow the alternate patch that is used for NULL returns? Could that cause 
worse problems that the current situation?

If this is unfixable due to Windows behavior, perhaps we should say something 
in the doc.

----------
nosy: +terry.reedy
stage:  -> test needed
versions: +Python 2.7, Python 3.2, Python 3.3 -Python 3.0

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue3905>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to