cpython/Misc/NEWS.d
Barney Gale 7c38097add
GH-73991: Add pathlib.Path.copy() (#119058)
Add a `Path.copy()` method that copies the content of one file to another.

This method is similar to `shutil.copyfile()` but differs in the following ways:

- Uses `fcntl.FICLONE` where available (see GH-81338)
- Uses `os.copy_file_range` where available (see GH-81340)
- Uses `_winapi.CopyFile2` where available, even though this copies more metadata than the other implementations. This makes `WindowsPath.copy()` more similar to `shutil.copy2()`.

The method is presently _less_ specified than the `shutil` functions to allow OS-specific optimizations that might copy more or less metadata.

Incorporates code from GH-81338 and GH-93152.

Co-authored-by: Eryk Sun <eryksun@gmail.com>
2024-06-14 17:15:49 +01:00
..
next GH-73991: Add pathlib.Path.copy() (#119058) 2024-06-14 17:15:49 +01:00
3.5.0.rst
3.5.0a1.rst Docs: fix typos in documentation (gh-118941) 2024-05-15 18:38:32 -05:00
3.5.0a2.rst
3.5.0a3.rst
3.5.0a4.rst
3.5.0b1.rst
3.5.0b2.rst
3.5.0b3.rst
3.5.0b4.rst
3.5.0rc1.rst
3.5.0rc2.rst
3.5.0rc3.rst
3.5.0rc4.rst
3.5.1.rst
3.5.1rc1.rst
3.5.2.rst
3.5.2rc1.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.5.3.rst
3.5.3rc1.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.5.4.rst
3.5.4rc1.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.5.5.rst
3.5.5rc1.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.6.0.rst
3.6.0a1.rst Docs: fix typos in documentation (gh-118941) 2024-05-15 18:38:32 -05:00
3.6.0a2.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.6.0a3.rst
3.6.0a4.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.6.0b1.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.6.0b2.rst Docs: fix typos in documentation (gh-118941) 2024-05-15 18:38:32 -05:00
3.6.0b3.rst
3.6.0b4.rst
3.6.0rc1.rst
3.6.0rc2.rst
3.6.1.rst
3.6.1rc1.rst
3.6.2.rst
3.6.2rc1.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.6.2rc2.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.6.3.rst
3.6.3rc1.rst Docs: fix typos in documentation (gh-118941) 2024-05-15 18:38:32 -05:00
3.6.4.rst
3.6.4rc1.rst
3.6.5.rst
3.6.5rc1.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.6.6.rst
3.6.6rc1.rst
3.7.0.rst
3.7.0a1.rst Docs: fix typos in documentation (gh-118941) 2024-05-15 18:38:32 -05:00
3.7.0a2.rst
3.7.0a3.rst
3.7.0a4.rst Docs: fix typos in documentation (gh-118941) 2024-05-15 18:38:32 -05:00
3.7.0b1.rst Docs: fix typos in documentation (gh-118941) 2024-05-15 18:38:32 -05:00
3.7.0b2.rst
3.7.0b3.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.7.0b4.rst Docs: fix typos in documentation (gh-118941) 2024-05-15 18:38:32 -05:00
3.7.0b5.rst
3.7.0rc1.rst
3.8.0a1.rst Fix typos in documentation (#119092) 2024-05-17 10:37:35 +00:00
3.8.0a2.rst
3.8.0a3.rst
3.8.0a4.rst Fix typos in documentation (#119092) 2024-05-17 10:37:35 +00:00
3.8.0b1.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.9.0a1.rst Fix typos in documentation (#119092) 2024-05-17 10:37:35 +00:00
3.9.0a2.rst gh-101100: Fix Sphinx warnings in whatsnew/3.9.rst (#118364) 2024-04-28 20:31:22 +03:00
3.9.0a3.rst
3.9.0a4.rst
3.9.0a5.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.9.0a6.rst Fix typos in documentation (#119092) 2024-05-17 10:37:35 +00:00
3.9.0b1.rst
3.10.0a1.rst gh-101100: Fix Sphinx warnings in whatsnew/3.9.rst (#118364) 2024-04-28 20:31:22 +03:00
3.10.0a2.rst
3.10.0a3.rst
3.10.0a4.rst Fix typos in documentation (#119092) 2024-05-17 10:37:35 +00:00
3.10.0a5.rst
3.10.0a6.rst
3.10.0a7.rst Docs: add link roles with Sphinx extlinks (#117850) 2024-04-15 21:22:00 +03:00
3.10.0b1.rst
3.11.0a1.rst Fix typos in documentation (#119092) 2024-05-17 10:37:35 +00:00
3.11.0a2.rst Fix typos in documentation (#119092) 2024-05-17 10:37:35 +00:00
3.11.0a3.rst
3.11.0a4.rst gh-101100: Fix Sphinx warnings in whatsnew/3.9.rst (#118364) 2024-04-28 20:31:22 +03:00
3.11.0a5.rst Fix typos in documentation (#119092) 2024-05-17 10:37:35 +00:00
3.11.0a6.rst Fix typos in documentation (#119092) 2024-05-17 10:37:35 +00:00
3.11.0a7.rst Fix typos in documentation (#119092) 2024-05-17 10:37:35 +00:00
3.11.0b1.rst Format None, True, False and NotImplemented as literals (GH-118758) 2024-05-08 22:35:16 +03:00
3.12.0a1.rst Fix typos in documentation (#119295) 2024-05-21 18:35:05 +00:00
3.12.0a2.rst Fix typos in documentation (#119295) 2024-05-21 18:35:05 +00:00
3.12.0a3.rst Fix typos in documentation (#119295) 2024-05-21 18:35:05 +00:00
3.12.0a4.rst Fix typos in documentation (#119295) 2024-05-21 18:35:05 +00:00
3.12.0a5.rst Fix typos in documentation (#119295) 2024-05-21 18:35:05 +00:00
3.12.0a6.rst Fix typos in documentation (#119295) 2024-05-21 18:35:05 +00:00
3.12.0a7.rst
3.12.0b1.rst Fix typos in documentation (#119295) 2024-05-21 18:35:05 +00:00
3.13.0a1.rst Fix typos in what's new documentation (#119448) 2024-05-23 06:41:33 +00:00
3.13.0a2.rst Fix typos in what's new documentation (#119448) 2024-05-23 06:41:33 +00:00
3.13.0a3.rst Fix typos in what's new documentation (#119448) 2024-05-23 06:41:33 +00:00
3.13.0a4.rst Fix typos in what's new documentation (#119448) 2024-05-23 06:41:33 +00:00
3.13.0a5.rst Fix typos in what's new documentation (#119448) 2024-05-23 06:41:33 +00:00
3.13.0a6.rst Fix typos in what's new documentation (#119448) 2024-05-23 06:41:33 +00:00
3.13.0b1.rst gh-102511: Amend 3.13.0b1.rst (GH-119895) 2024-06-03 14:27:44 +01:00