This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients eryksun, paul.moore, steve.dower, tim.golden, wolma, zach.ware
Date 2015-12-03.18:50:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449168647.28.0.809672352969.issue25789@psf.upfronthosting.co.za>
In-reply-to
Content
The error() function in PC/launcher.c should call exit(rc) instead of ExitProcess(rc). This allows the CRT to terminate properly and flush the stderr FILE stream. With this change it works as expected:

    >>> import subprocess
    >>> p = subprocess.Popen(r'amd64\py_d -3.7', stderr=subprocess.PIPE)
    >>> p.stderr.read()
    b'Requested Python version (3.7) not installed\r\n'
History
Date User Action Args
2015-12-03 18:50:47eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, wolma
2015-12-03 18:50:47eryksunsetmessageid: <1449168647.28.0.809672352969.issue25789@psf.upfronthosting.co.za>
2015-12-03 18:50:47eryksunlinkissue25789 messages
2015-12-03 18:50:47eryksuncreate