summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2022-02-02 12:38:25 (GMT)
committerGitHub <noreply@github.com>2022-02-02 12:38:25 (GMT)
commit08f8301b21648d58d053e1a513db8ed32fbf37dd (patch)
tree5653595bd4eb375f7931e22a3cacd47bfdcf25dd /Misc
parent187930f74c44e460ba09c60ba5d9bb4fac543d8f (diff)
downloadcpython-08f8301b21648d58d053e1a513db8ed32fbf37dd.zip
cpython-08f8301b21648d58d053e1a513db8ed32fbf37dd.tar.gz
cpython-08f8301b21648d58d053e1a513db8ed32fbf37dd.tar.bz2
bpo-43012: remove `pathlib._Accessor` (GH-25701)
Per Pitrou: > The original intent for the “accessor” thing was to have a variant that did all accesses under a filesystem tree in a race condition-free way using openat and friends. It turned out to be much too hairy to actually implement, so was entirely abandoned, but the accessor abstraction was left there. https://discuss.python.org/t/make-pathlib-extensible/3428/2 Accessors are: - Lacking any internal purpose - '_NormalAccessor' is the only implementation - Lacking any firm conceptual difference to `Path` objects themselves (inc. subclasses) - Non-public, i.e. underscore prefixed - '_Accessor' and '_NormalAccessor' - Unofficially used to implement customized `Path` objects, but once once [bpo-24132]() is addressed there will be a supported route for that. This patch preserves all existing behaviour.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2022-01-05-03-09-29.bpo-43012.RVhLIL.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-01-05-03-09-29.bpo-43012.RVhLIL.rst b/Misc/NEWS.d/next/Library/2022-01-05-03-09-29.bpo-43012.RVhLIL.rst
new file mode 100644
index 0000000..c6a6723
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-01-05-03-09-29.bpo-43012.RVhLIL.rst
@@ -0,0 +1,2 @@
+The pathlib module's obsolete and internal ``_Accessor`` class has been
+removed to prepare the terrain for upcoming enhancements to the module.