Author terry.reedy
Recipients BreamoreBoy, Weird, amaury.forgeotdarc, benjamin.peterson, chn, denversc, georg.brandl, jmfauth, kevinwatters, terry.reedy, tlesher, trentm, twhitema
Date 2014-06-11.00:15:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402445729.36.0.463747468917.issue3905@psf.upfronthosting.co.za>
In-reply-to
Content
Mark, you did not specify which of the variations you tried ;-) I reproduce as I said in my last message.

C:\Programs\Python34>pythonw -m idlelib

Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [
>>> import subprocess
>>> p = subprocess.Popen(["python", "-c", "print(32)"], stdin=None,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Traceback (most recent call last):
...
    _winapi.DUPLICATE_SAME_ACCESS)
OSError: [WinError 6] The handle is invalid

Change startup command from pythonw to python, no error, and it runs.
>>> p.communicate()
(b'32\r\n', b'')
History
Date User Action Args
2014-06-11 00:15:30terry.reedysetrecipients: + terry.reedy, georg.brandl, amaury.forgeotdarc, kevinwatters, tlesher, benjamin.peterson, trentm, jmfauth, twhitema, Weird, BreamoreBoy, denversc, chn
2014-06-11 00:15:29terry.reedysetmessageid: <1402445729.36.0.463747468917.issue3905@psf.upfronthosting.co.za>
2014-06-11 00:15:29terry.reedylinkissue3905 messages
2014-06-11 00:15:27terry.reedycreate