Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-89812: Add pathlib._PathBase #106337

Merged
merged 37 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
4b29e2e
Add `pathlib._VirtualPath`
barneygale Jun 23, 2023
8ce0139
Add tests for `pathlib._VirtualPath`
barneygale Jul 2, 2023
b850d11
Fix tests on Windows
barneygale Jul 2, 2023
39bf6b3
Fix tests on Windows (take 2)
barneygale Jul 3, 2023
0515dea
Fix tests on Windows (take 3)
barneygale Jul 3, 2023
596016f
Fix tests on Windows (take 4)
barneygale Jul 3, 2023
1a6122b
Add `tarfile.TarPath`
barneygale Jul 3, 2023
6833ed8
Add docs for `tarfile.TarPath`
barneygale Jul 3, 2023
4d2e8a9
Add tests for `tarfile.TarPath`
barneygale Jul 3, 2023
e4daac9
Merge branch 'main' into gh-89812-omgtarpath
barneygale Jul 3, 2023
e3f2509
Merge branch 'main' into gh-89812-omgtarpath
barneygale Jul 12, 2023
508cabe
Undo changes to tarfile.
barneygale Jul 12, 2023
2c56591
`_VirtualPath` --> `_PathBase`
barneygale Jul 12, 2023
42fe91a
Merge branch 'main' into gh-89812-omgtarpath
barneygale Jul 19, 2023
8944098
Apply suggestions from code review
barneygale Aug 28, 2023
b61141a
Improve _PathBase docstring
barneygale Aug 28, 2023
1e462b0
Explain use of nullcontext() in comment
barneygale Aug 28, 2023
6318eb7
Merge branch 'main' into gh-89812-omgtarpath
barneygale Aug 28, 2023
d321cad
Align and test Path/PathBase docstrings
barneygale Aug 28, 2023
acfc1b0
Revise `_PathBase.is_junction()`
barneygale Aug 28, 2023
bc82225
Make is_junction() code more consistent with other is_*() methods.
barneygale Aug 28, 2023
9b6377a
Merge branch 'main' into gh-89812-omgtarpath
barneygale Sep 2, 2023
c3127b8
Improve `UnsupportedOperation` exception message.
barneygale Sep 2, 2023
3540ae1
Slightly improve symlink loop code, exception message.
barneygale Sep 2, 2023
c9f0f20
Restore deleted comment in `cwd()`, expand `_scandir()` comment.
barneygale Sep 2, 2023
0ee10ca
Make `_PathBase.is_junction()` immediately return false.
barneygale Sep 2, 2023
17eee2f
MAX_SYMLINKS --> _MAX_SYMLINKS
barneygale Sep 9, 2023
c7c46bc
`return self._unsupported()` --> `self._unsupported()`
barneygale Sep 9, 2023
a51d7a0
WIP
barneygale Sep 15, 2023
7e3729e
Undo test change.
barneygale Sep 23, 2023
b945cf8
Merge branch 'main' into gh-89812-omgtarpath
barneygale Sep 26, 2023
703fe5c
Ensure `..` segments are resolved in non-strict mode
barneygale Sep 26, 2023
e5e5be5
Move symlink loop resolution test from `PosixPathTest` to `DummyPathT…
barneygale Sep 26, 2023
38769a0
Add `PathBase._split_stack()` helper method.
barneygale Sep 26, 2023
7c78952
Use path object as stat/link target cache key
barneygale Sep 26, 2023
fe57725
Optimise resolve(): skip stat() in non-strict mode if readlink() is u…
barneygale Sep 27, 2023
cf9c8b6
Address code review comments
barneygale Sep 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view