Eryk Sun added the comment:

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'

----------
keywords: +patch
nosy: +eryksun
stage:  -> patch review
Added file: http://bugs.python.org/file41228/issue25789_1.patch

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

Reply via email to