|
1358 | 1358 | files and directories, it is more reliable (and also faster) to manipulate |
1359 | 1359 | file descriptors instead of file names. Python 3.3 enhances existing functions |
1360 | 1360 | and introduces new functions to work on file descriptors (:issue:`4761`, |
1361 | | - :issue:`10755`). |
| 1361 | + :issue:`10755` and :issue:`14626`). |
1362 | 1362 |
|
1363 | 1363 | - The :mod:`os` module has a new :func:`~os.fwalk` function similar to |
1364 | 1364 | :func:`~os.walk` except that it also yields file descriptors referring to the |
@@ -1391,6 +1391,12 @@ os |
1391 | 1391 | Windows. |
1392 | 1392 | (Contributed by Antoine Pitrou in :issue:`8828`.) |
1393 | 1393 |
|
| 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 | + |
1394 | 1400 | * The new :func:`os.get_terminal_size` function queries the size of the |
1395 | 1401 | terminal attached to a file descriptor. See also |
1396 | 1402 | :func:`shutil.get_terminal_size`. |
@@ -1510,6 +1516,11 @@ shutil |
1510 | 1516 | path also specifying the user/group names and not only their numeric |
1511 | 1517 | ids. (Contributed by Sandro Tosi in :issue:`12191`) |
1512 | 1518 |
|
| 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 | + |
1513 | 1524 | * The new :func:`shutil.get_terminal_size` function returns the size of the |
1514 | 1525 | terminal window the interpreter is attached to. |
1515 | 1526 | (Contributed by Zbigniew Jędrzejewski-Szmek in :issue:`13609`.) |
|
0 commit comments