Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88950fb

Browse files
committed
Add What's New entries for some minor work I did in 3.3.
1 parent f82b937 commit 88950fb

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

Doc/whatsnew/3.3.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ os
13581358
files and directories, it is more reliable (and also faster) to manipulate
13591359
file descriptors instead of file names. Python 3.3 enhances existing functions
13601360
and introduces new functions to work on file descriptors (:issue:`4761`,
1361-
:issue:`10755`).
1361+
:issue:`10755` and :issue:`14626`).
13621362

13631363
- The :mod:`os` module has a new :func:`~os.fwalk` function similar to
13641364
:func:`~os.walk` except that it also yields file descriptors referring to the
@@ -1391,6 +1391,12 @@ os
13911391
Windows.
13921392
(Contributed by Antoine Pitrou in :issue:`8828`.)
13931393

1394+
* The stat family of functions (:func:`~os.stat`, :func:`~os.fstat`,
1395+
and :func:`~os.lstat`) now support reading a file's timestamps
1396+
with nanosecond precision. Symmetrically, :func:`~os.utime`
1397+
can now write file timestamps with nanosecond precision. (Contributed by
1398+
Larry Hastings in :issue:`14127`.)
1399+
13941400
* The new :func:`os.get_terminal_size` function queries the size of the
13951401
terminal attached to a file descriptor. See also
13961402
:func:`shutil.get_terminal_size`.
@@ -1510,6 +1516,11 @@ shutil
15101516
path also specifying the user/group names and not only their numeric
15111517
ids. (Contributed by Sandro Tosi in :issue:`12191`)
15121518

1519+
* :func:`~shutil.copy2` and :func:`~shutil.copystat` now preserve file
1520+
timestamps with nanosecond precision on platforms that support it.
1521+
They also preserve file "extended attributes" on Linux. (Contributed
1522+
by Larry Hastings in :issue:`14127` and :issue:`15238`.)
1523+
15131524
* The new :func:`shutil.get_terminal_size` function returns the size of the
15141525
terminal window the interpreter is attached to.
15151526
(Contributed by Zbigniew Jędrzejewski-Szmek in :issue:`13609`.)

0 commit comments

Comments
 (0)