diff options
author | Eric V. Smith <eric@trueblade.com> | 2015-04-15 14:27:58 (GMT) |
---|---|---|
committer | Eric V. Smith <eric@trueblade.com> | 2015-04-15 14:27:58 (GMT) |
commit | 7a80389ce5b2687137884e423d3bda27ff5d3acc (patch) | |
tree | 7390245c00e8fcf4c86518c22cf57b1092932373 /Doc/whatsnew | |
parent | 28edf12cd4d3900b1583f779be907c00b1b8366b (diff) | |
download | cpython-7a80389ce5b2687137884e423d3bda27ff5d3acc.zip cpython-7a80389ce5b2687137884e423d3bda27ff5d3acc.tar.gz cpython-7a80389ce5b2687137884e423d3bda27ff5d3acc.tar.bz2 |
Issue 23193: Add numeric_owner to tarfile.TarFile.extract() and tarfile.TarFile.extractall().
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.5.rst | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index e865402..5d010bf 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -479,26 +479,32 @@ socket :meth:`socket.socket.send`. (Contributed by Giampaolo Rodola' in :issue:`17552`.) +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`. + sysconfig --------- * The user scripts directory on Windows is now versioned. (Contributed by Paul Moore in :issue:`23437`.) - 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`. +* The :meth:`~tarfile.TarFile.extractall` and :meth:`~tarfile.TarFile.extract` + methods now take a keyword parameter *numeric_only*. If set to ``True``, + the extracted files and directories will be owned by the numeric uid and gid + from the tarfile. If set to ``False`` (the default, and the behavior in + versions prior to 3.5), they will be owned bythe named user and group in the + tarfile. (Contributed by Michael Vogt and Eric Smith in :issue:`23193`.) time ---- |