Skip to content

Rename pathlib.PurePath.pathmod #114575

Closed
Closed
@barneygale

Description

@barneygale

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

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions