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

github.com

Tin mới

barneygale:gh-89812-omgtarpath

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

gh-86943: implement pathlib.WindowsPath.is_mount() #31458

Add tarfile.TarPath #89812

Add pathlib._VirtualPath

Add tests for pathlib._VirtualPath

Fix tests on Windows

Fix tests on Windows (take 2)

Fix tests on Windows (take 3)

Fix tests on Windows (take 4)

Add tarfile.TarPath

Add docs for tarfile.TarPath

Add tests for tarfile.TarPath

Merge branch 'main' into

awaiting core review

awaiting core review

Heads up: pathlib._PathBase may be coming soon fsspec/universal_pathlib#114

Heads up: pathlib.VirtualPath may be coming soon drivendataorg/cloudpathlib#347

Heads up: pathlib.VirtualPath may be coming soon justindujardin/pathy#105

Heads up: pathlib.VirtualPath may be coming soon liormizr/s3path#140

Merge branch 'main' into

Undo changes to tarfile.

_VirtualPath --> _PathBase

GH-109187: Improve symlink loop handling in pathlib.Path.resolve() #109192

Undo test change. This will require further refactoring in another PR.

View reviewed changes

View reviewed changes

Merge branch 'main' into

Ensure .. segments are resolved in non-strict mode

Move symlink loop resolution test from PosixPathTest to `DummyPathT…

Add PathBase._split_stack() helper method.

Use path object as stat/link target cache key

Optimise resolve(): skip stat() in non-strict mode if readlink() is u…