diff options
author | Gregory P. Smith <greg@krypto.org> | 2015-04-14 23:14:25 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2015-04-14 23:14:25 (GMT) |
commit | 6e73000723640121ce7529ec91a01323bd7b76b5 (patch) | |
tree | c989873ac2aa10fe16570b1b67b7cfea0569d513 /Doc/whatsnew | |
parent | a8723a02ea109beabe2dfe1bbe18958afc5b7af9 (diff) | |
download | cpython-6e73000723640121ce7529ec91a01323bd7b76b5.zip cpython-6e73000723640121ce7529ec91a01323bd7b76b5.tar.gz cpython-6e73000723640121ce7529ec91a01323bd7b76b5.tar.bz2 |
Add a subprocess.run() function than returns a CalledProcess instance for a
more consistent API than the existing call* functions.
(enhancement from issue 23342)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.5.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index a1130df..e865402 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -492,6 +492,14 @@ tarfile * The :func:`tarfile.open` function now supports ``'x'`` (exclusive creation) mode. (Contributed by Berker Peksag in :issue:`21717`.) +subprocess +---------- + +* The new :func:`subprocess.run` function runs subprocesses and returns a + :class:`subprocess.CompletedProcess` object. It Provides a more consistent + API than :func:`~subprocess.call`, :func:`~subprocess.check_call` and + :func:`~subprocess.check_output`. + time ---- |