Closed
Description
Feature or enhancement
In #100502 we added a pathmod
attribute that points to either posixpath
or ntpath
, and supplies low-level lexical manipulation functions used by PurePath
.
The name "pathmod" implies the value is a module, and while that's true in PurePath
and its subclasses, it's not necessarily true in _abc.PurePathBase
and its subclasses. In fact, user subclasses of PurePathBase
and PathBase
are more likely to implement pathmod using a class, and not a module.
The ABCs are currently private, but they may be made public in future, and so I think it's worth improving the name now to reduce probable future churn/grief.
Downstream issue: barneygale/pathlib-abc#19