Skip to content

docs: update pathlib subclassing comparison - #270

Open
carlitogwapito wants to merge 1 commit into
jaraco:mainfrom
carlitogwapito:codex/docs-pathlib-subclassing
Open

carlitogwapito wants to merge 1 commit into
jaraco:mainfrom
carlitogwapito:codex/docs-pathlib-subclassing

Conversation

@carlitogwapito

Copy link
Copy Markdown

The README still describes direct subclassing of pathlib.Path as unavailable.
Python 3.12 added support for it, so this qualifies that comparison and links to
the Python release notes. The Path.module and pure-path discussion is unchanged.

This changes only that paragraph and adds the news fragment requested by the
project guidance. No package code or dependencies changed.

Checked direct subclass construction, an instance attribute, and subclass
retention for child/parent paths on Windows with Python 3.14.4. Older runtimes
weren't tested locally; the 3.12 boundary comes from the release notes. I haven't
run tox or a docs build; docutils isn't installed in this environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant