]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-73991: Make `pathlib.Path.delete()` private. (#123315)
authorBarney Gale <barney.gale@gmail.com>
Mon, 26 Aug 2024 15:26:34 +0000 (16:26 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Aug 2024 15:26:34 +0000 (16:26 +0100)
commit033d537cd4b8c12f2441f1c23960c2153122140a
tree7817074e7c0cb80970d70cf68e1d87f99ab6b57a
parenta1ddaaef58e21551399ee3d30d592cd336baec4c
GH-73991: Make `pathlib.Path.delete()` private. (#123315)

Per feedback from Paul Moore on GH-123158, it's better to defer making
`Path.delete()` public than ship it with under-designed error handling
capabilities.

We leave a remnant `_delete()` method, which is used by `move()`. Any
functionality not needed by `move()` is deleted.
Doc/library/pathlib.rst
Doc/whatsnew/3.14.rst
Lib/pathlib/_abc.py
Lib/pathlib/_local.py
Lib/test/test_pathlib/test_pathlib.py
Lib/test/test_pathlib/test_pathlib_abc.py
Misc/NEWS.d/next/Library/2024-05-15-01-21-44.gh-issue-73991.bNDqQN.rst [deleted file]