[New-bugs-announce] [issue43012] Remove pathlib accessors
report at bugs.python.org
Sat Jan 23 13:15:55 EST 2021
New submission from Barney Gale <barney.gale at gmail.com>:
> 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.
- 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)
title: Remove pathlib accessors
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce