summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2012-09-21 16:30:19 (GMT)
committerLarry Hastings <larry@hastings.org>2012-09-21 16:30:19 (GMT)
commit88950fb4d0b945b6a78571eafcd1dcb5356544eb (patch)
treea4c5320d90d881dc491ba6db56a3a2176586347c /Doc/whatsnew
parentf82b9371f5234e9ce671f7ee7fe1debbe2f48b05 (diff)
downloadcpython-88950fb4d0b945b6a78571eafcd1dcb5356544eb.zip
cpython-88950fb4d0b945b6a78571eafcd1dcb5356544eb.tar.gz
cpython-88950fb4d0b945b6a78571eafcd1dcb5356544eb.tar.bz2
Add What's New entries for some minor work I did in 3.3.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.3.rst13
1 files changed, 12 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
index 7d77472..617700c 100644
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -1358,7 +1358,7 @@ os
files and directories, it is more reliable (and also faster) to manipulate
file descriptors instead of file names. Python 3.3 enhances existing functions
and introduces new functions to work on file descriptors (:issue:`4761`,
- :issue:`10755`).
+ :issue:`10755` and :issue:`14626`).
- The :mod:`os` module has a new :func:`~os.fwalk` function similar to
:func:`~os.walk` except that it also yields file descriptors referring to the
@@ -1391,6 +1391,12 @@ os
Windows.
(Contributed by Antoine Pitrou in :issue:`8828`.)
+* The stat family of functions (:func:`~os.stat`, :func:`~os.fstat`,
+ and :func:`~os.lstat`) now support reading a file's timestamps
+ with nanosecond precision. Symmetrically, :func:`~os.utime`
+ can now write file timestamps with nanosecond precision. (Contributed by
+ Larry Hastings in :issue:`14127`.)
+
* The new :func:`os.get_terminal_size` function queries the size of the
terminal attached to a file descriptor. See also
:func:`shutil.get_terminal_size`.
@@ -1510,6 +1516,11 @@ shutil
path also specifying the user/group names and not only their numeric
ids. (Contributed by Sandro Tosi in :issue:`12191`)
+* :func:`~shutil.copy2` and :func:`~shutil.copystat` now preserve file
+ timestamps with nanosecond precision on platforms that support it.
+ They also preserve file "extended attributes" on Linux. (Contributed
+ by Larry Hastings in :issue:`14127` and :issue:`15238`.)
+
* The new :func:`shutil.get_terminal_size` function returns the size of the
terminal window the interpreter is attached to.
(Contributed by Zbigniew Jędrzejewski-Szmek in :issue:`13609`.)