New submission from Barney Gale <barney.g...@gmail.com>: 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 lands there will be a supported route for that. When bpo-24132 lands, I think we're free to remove accessors and simplify some code ---------- components: Library (Lib) messages: 385556 nosy: barneygale priority: normal severity: normal status: open title: Remove pathlib accessors _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43012> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com