bpo-35537: Document posix_spawn() change in subprocess (GH-11668)

Document that subprocess.Popen no longer raise an exception on error
like missing program on very specific platforms when using
os.posix_spawn() is used.
This commit is contained in:
Victor Stinner 2019-04-25 14:30:16 +02:00 committed by GitHub
parent 0ef8c157e9
commit d7befad328
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View file

@ -567,6 +567,13 @@ functions.
Popen destructor now emits a :exc:`ResourceWarning` warning if the child
process is still running.
.. versionchanged:: 3.8
Popen can use :func:`os.posix_spawn` in some cases for better
performance. On Windows Subsystem for Linux and QEMU User Emulation,
Popen constructor using :func:`os.posix_spawn` no longer raise an
exception on errors like missing program, but the child process fails
with a non-zero :attr:`~Popen.returncode`.
Exceptions
^^^^^^^^^^