GH-89812: Add `pathlib._PurePathExt` by barneygale · Pull Request #104810 · python/cpython · GitHub

github.com

Tin mới

barneygale:gh-89812-add-lexicalpath

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Add tarfile.TarPath #89812

GH-89812: Add `pathlib._LexicalPath` This internal class excludes the `__fspath__()`, `__bytes__()` and `as_uri()` methods, which must not be inherited by a future `tarfile.TarPath` class.

awaiting core review

awaiting core review

Rename _LexicalPath --> _BasePurePath

View reviewed changes

Document __bytes__ in PurePath docstring

View reviewed changes

Apply suggestions from code review

Revert "Document __bytes__ in PurePath docstring"

View reviewed changes

Update Lib/pathlib.py

Subclass from os.PathLike

View reviewed changes

os.PathLike is missing __slots__ #104898

Revert "Subclass from os.PathLike"

Revert "Add news blurb"

Merge branch 'main' into

GH-89812: Clean up pathlib tests. #104829

View reviewed changes

Merge branch 'main' into

Merge branch 'main' into

Merge branch 'main' into

Fix missed isinstance() call.

Merge branch 'main' into

Drop methods from PurePath itself, as it cannot be instantiated.

Move as_uri() back